Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Scoped Find

Scoped Find

Adds a :scope option to AR::Base.find, which automatically limits to: – the current organization – what the current user can see – what the current user can modify in the way specified by the scope

Examples: Person.find(4, :scope => :read) mailbox.messages.find(:all, :scope => :delete)

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly