Module: Upmin::Railties::ActiveRecord

Extended by:
ActiveSupport::Concern
Defined in:
lib/upmin/railties/active_record.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#upmin_modelObject



7
8
9
10
# File 'lib/upmin/railties/active_record.rb', line 7

def upmin_model
  klass = Upmin::Model.find_class(self.class)
  return klass.new(self)
end