class method
self.find_allowed?
Ruby on Rails 1.1.0
Last seen in v1.3.0 PrivateSignature
self.find_allowed?(model_class, only = nil)
No documentation comment.
Parameters
-
model_classreq -
onlyopt = nil
Source
# File lib/global_id/locator.rb, line 111
def find_allowed?(model_class, only = nil)
only ? Array(only).any? { |c| model_class <= c } : true
end
Defined in lib/global_id/locator.rb line 111
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in GlobalID::Locator