Class: ActiveRecord::Tenanted::GlobalId::Locator
- Inherits:
-
Object
- Object
- 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) gid.model_class.find(gid.model_id) end |