Module: Upmin::ActiveRecord::Model

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#new_record?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/upmin/active_record/model.rb', line 5

def new_record?
  return model.new_record?
end

#to_keyObject



9
10
11
# File 'lib/upmin/active_record/model.rb', line 9

def to_key
  return model.to_key
end