class Reactor::Plans::UpdateAttributeGroup
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Reactor::Plans::CommonAttributeGroup::new
# File lib/reactor/plans/update_attribute_group.rb, line 6 def initialize(*args) super() (obj_class, name), options = separate_arguments(*args) @name = name || options[:name] @obj_class = obj_class || options[:obj_class] @pk = "#{@obj_class}.#{@name}" end
Public Instance Methods
migrate!()
click to toggle source
# File lib/reactor/plans/update_attribute_group.rb, line 21 def migrate! attrib = Reactor::Cm::AttributeGroup.get(@pk) migrate_params!(attrib) end
prepapre!()
click to toggle source
# File lib/reactor/plans/update_attribute_group.rb, line 14 def prepapre! error("name ist nil") if @name.nil? error("obj_class is nil") if @obj_class.nil? error("attribute group #{@pk} does not exist") if not Reactor::Cm::AttributeGroup.exists?(ok) prepare_params!(nil) end