Class: Iron::GlobalID::InstanceScopedLocator
- Inherits:
-
GlobalID::Locator::UnscopedLocator
- Object
- GlobalID::Locator::UnscopedLocator
- Iron::GlobalID::InstanceScopedLocator
- Defined in:
- lib/iron/global_id/instance_scoped_locator.rb
Instance Method Summary collapse
Instance Method Details
#locate(gid, options = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/iron/global_id/instance_scoped_locator.rb', line 6 def locate(gid, = {}) return unless instance_matches?(gid) super end |
#locate_many(gids, options = {}) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/iron/global_id/instance_scoped_locator.rb', line 12 def locate_many(gids, = {}) filtered_gids = gids.select { |candidate| instance_matches?(candidate) } return [] if filtered_gids.empty? super(filtered_gids, ) end |