lib/active_model/attribute_methods.rb in activemodel-3.0.0.beta2 vs lib/active_model/attribute_methods.rb in activemodel-3.0.0.beta3

- old
+ new

@@ -219,11 +219,11 @@ undefine_attribute_methods end def alias_attribute(new_name, old_name) attribute_method_matchers.each do |matcher| - module_eval <<-STR, __FILE__, __LINE__+1 + module_eval <<-STR, __FILE__, __LINE__ + 1 def #{matcher.method_name(new_name)}(*args) send(:#{matcher.method_name(old_name)}, *args) end STR end @@ -263,10 +263,10 @@ if respond_to?(generate_method) send(generate_method, attr_name) else method_name = matcher.method_name(attr_name) - generated_attribute_methods.module_eval <<-STR, __FILE__, __LINE__+1 + generated_attribute_methods.module_eval <<-STR, __FILE__, __LINE__ + 1 if method_defined?(:#{method_name}) undef :#{method_name} end def #{method_name}(*args) send(:#{matcher.method_missing_target}, '#{attr_name}', *args)