resource_controller icon indicating copy to clipboard operation
resource_controller copied to clipboard

Replace Resource#find(:all) with Resource#all

Open ianejames opened this issue 15 years ago • 0 comments

From what I gather, +find(:all)+ in ActiveRecord is being deprecated in favor of +all+.

In ResourceController::Helpers::CurrentObjects line 17 has:

end_of_association_chain.find(:all)

which should read:

end_of_association_chain.all

This update is also compatible with using an ActiveHash model as the resource. It sounds like some people use DataMapper; I'm not sure how this would affect them.

ianejames avatar Mar 18 '11 18:03 ianejames