marnen / positron

Don't leak ActiveRecord details into your Rails models!
MIT License
0 stars 0 forks source link

Remove db method when Positron objects are copied from controller to view #8

Open marnen opened 9 years ago

marnen commented 9 years ago

We should remove the db method when Positron objects are copied from controller to view, so that there will be no way to call the database from the view.

However, we should make sure to do this in a way that doesn't break the Cells gem, which needs to copy model objects back into a controller context from the view.