Class: GlobalID::Locator::ActiveRecordFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/global_id/locator.rb

Instance Method Summary collapse

Instance Method Details

#locate(gid) ⇒ Object



64
65
66
# File 'lib/global_id/locator.rb', line 64

def locate(gid)
  gid.model_class.find gid.model_id
end