lib/ripple/document/attribute_methods.rb in ripple-0.5.1 vs lib/ripple/document/attribute_methods.rb in ripple-0.6.0

- old
+ new

@@ -62,10 +62,10 @@ end # Mass assign the document's attributes. # @param [Hash] attrs the attributes to assign def attributes=(attrs) - raise ArgumentError, "value of attributes must be a Hash" unless Hash === attrs + raise ArgumentError, t('attribute_hash') unless Hash === attrs attrs.each do |k,v| if respond_to?("#{k}=") __send__("#{k}=",v) else __send__(:attribute=,k,v)