class Reactor::Plans::UpdateAttribute

Public Class Methods

new(*args) click to toggle source
Calls superclass method Reactor::Plans::CommonAttribute::new
# File lib/reactor/plans/update_attribute.rb, line 4
def initialize(*args)
  super()
  (name, x), options = separate_arguments(*args)
  @name = name || options[:name]
end

Public Instance Methods

migrate!() click to toggle source
# File lib/reactor/plans/update_attribute.rb, line 16
def migrate!
  attrib = Reactor::Cm::Attribute.get(@name)
  migrate_params!(attrib)
end
prepapre!() click to toggle source
# File lib/reactor/plans/update_attribute.rb, line 10
def prepapre!
  error("name is nil") if @name.nil?
  error("attribute #{@name} not found") if not Reactor::Cm::Attribute.exists?(@name)
  prepare_params!(nil)
end