lib/active_remote/attributes.rb in active_remote-2.3.2 vs lib/active_remote/attributes.rb in active_remote-2.3.3.pre

- old
+ new

@@ -1,6 +1,14 @@ module ActiveRemote module Attributes + def attributes + @attributes ||= begin + attribute_names = self.class.attribute_names + Hash[attribute_names.map { |key| [key, send(key)] }] + end + @attributes.dup + end + # Read attribute from the attributes hash # def read_attribute(name) name = name.to_s