Skip to content

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

Description

@ianejames

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions