Class: Reactor::Plans::UpdateObjClass
- Inherits:
-
CommonObjClass
- Object
- CommonObjClass
- Reactor::Plans::UpdateObjClass
- Includes:
- Prepared
- Defined in:
- lib/reactor/plans/update_obj_class.rb
Constant Summary
Constants inherited from CommonObjClass
CommonObjClass::ALLOWED_PARAMS
Instance Method Summary collapse
-
#initialize(*args) ⇒ UpdateObjClass
constructor
A new instance of UpdateObjClass.
- #migrate! ⇒ Object
- #prepare! ⇒ Object
Methods included from Prepared
Methods inherited from CommonObjClass
Constructor Details
#initialize(*args) ⇒ UpdateObjClass
Returns a new instance of UpdateObjClass.
7 8 9 10 11 |
# File 'lib/reactor/plans/update_obj_class.rb', line 7 def initialize(*args) super() (name, x), = separate_arguments(*args) @name = name || [:name] end |
Instance Method Details
#migrate! ⇒ Object
20 21 22 23 |
# File 'lib/reactor/plans/update_obj_class.rb', line 20 def migrate! migrate_attrs!(@klass) migrate_params!(@klass) end |