Module: Lore::Polymorphic_Instance_Methods

Included in:
Model_Instance, Table_Accessor
Defined in:
lib/lore/model/polymorphic.rb

Instance Method Summary collapse

Instance Method Details

#get_concrete_modelObject



45
46
47
48
49
# File 'lib/lore/model/polymorphic.rb', line 45

def get_concrete_model
  concrete_model_name = self.__send__(self.class.polymorphic_attribute)
  return unless concrete_model_name
  eval(concrete_model_name)
end