lib/netsuite/support/actions.rb in netsuite-0.0.34 vs lib/netsuite/support/actions.rb in netsuite-0.0.35

- old
+ new

@@ -15,23 +15,18 @@ end def action(name) case name when :get - self.extend(NetSuite::Actions::Get::Support) + self.send(:include, NetSuite::Actions::Get::Support) when :add self.send(:include, NetSuite::Actions::Add::Support) when :delete self.send(:include, NetSuite::Actions::Delete::Support) when :update self.send(:include, NetSuite::Actions::Update::Support) when :initialize - (class << self; self; end).instance_eval do # We have to do this because Class has a private - define_method :initialize do |*args| # #initialize method that this method will override. - super(*args) - end - end - self.extend(NetSuite::Actions::Initialize::Support) + self.send(:include, NetSuite::Actions::Initialize::Support) else raise "Unknown action: #{name.inspect}" end end