class method self.find_allowed?

Ruby on Rails 1.1.0

Last seen in v1.3.0 Private

Available in: v1.0.1 v1.1.0 v1.2.1 v1.3.0

Signature

self.find_allowed?(model_class, only = nil)

No documentation comment.

Parameters

model_class req
only opt = 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

Type at least 2 characters to search.

↑↓ navigate · open · esc close