lib/active_remote/attributes.rb in active_remote-1.6.1 vs lib/active_remote/attributes.rb in active_remote-1.7.0

- old
+ new

@@ -4,11 +4,11 @@ # def read_attribute(name) name = name.to_s if respond_to? name - @attributes[name] + attribute(name) else raise ::ActiveAttr::UnknownAttributeError, "unknown attribute: #{name}" end end alias_method :[], :read_attribute @@ -17,10 +17,10 @@ # def write_attribute(name, value) name = name.to_s if respond_to? "#{name}=" - @attributes[name] = typecast_attribute(_attribute_typecaster(name), value) + __send__("attribute=", name, value) else raise ::ActiveAttr::UnknownAttributeError, "unknown attribute: #{name}" end end alias_method :[]=, :write_attribute