Class: DynamicActiveModel::Database::ModelUpdater

Inherits:
Struct
  • Object
show all
Defined in:
lib/dynamic-active-model/database.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



11
12
13
# File 'lib/dynamic-active-model/database.rb', line 11

def model
  @model
end

Instance Method Details

#update_model(&block) ⇒ Object



12
13
14
# File 'lib/dynamic-active-model/database.rb', line 12

def update_model(&block)
  model.class_eval(&block)
end