Class: ActiveRecord::Tenanted::GlobalId::Locator
- Inherits:
-
GlobalID::Locator::UnscopedLocator
- Object
- GlobalID::Locator::UnscopedLocator
- ActiveRecord::Tenanted::GlobalId::Locator
- Defined in:
- lib/active_record/tenanted/global_id.rb
Instance Method Summary collapse
Instance Method Details
#locate(gid, options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/active_record/tenanted/global_id.rb', line 13 def locate(gid, = {}) ensure_tenant_context_safety(gid) super end |
#locate_many(gids, options = {}) ⇒ Object
18 19 20 21 |
# File 'lib/active_record/tenanted/global_id.rb', line 18 def locate_many(gids, = {}) gids.each { |gid| ensure_tenant_context_safety(gid) } super end |