Module: HashIdentable::Locator

Defined in:
lib/hash_identable/locator.rb

Defined Under Namespace

Modules: ActiveRecord

Class Method Summary collapse

Class Method Details

.find(key, find_method = :find) ⇒ Object



5
6
7
8
# File 'lib/hash_identable/locator.rb', line 5

def self.find(key, find_method=:find)
  identity = Identity.find(key)
  return identity.klass_constant.send(find_method, identity.id)
end