lib/active_remote/attributes.rb in active_remote-1.5.8 vs lib/active_remote/attributes.rb in active_remote-1.5.9

- old
+ new

@@ -6,11 +6,11 @@ name = name.to_s if respond_to? name @attributes[name] else - raise UnknownAttributeError, "unknown attribute: #{name}" + raise ::ActiveAttr::UnknownAttributeError, "unknown attribute: #{name}" end end alias_method :[], :read_attribute # Update an attribute in the attributes hash @@ -19,10 +19,10 @@ name = name.to_s if respond_to? "#{name}=" @attributes[name] = typecast_attribute(_attribute_typecaster(name), value) else - raise UnknownAttributeError, "unknown attribute: #{name}" + raise ::ActiveAttr::UnknownAttributeError, "unknown attribute: #{name}" end end alias_method :[]=, :write_attribute end end