lib/active_remote/attributes.rb in active_remote-1.8.1 vs lib/active_remote/attributes.rb in active_remote-2.0.0.rc1
- old
+ new
@@ -6,11 +6,11 @@
name = name.to_s
if respond_to? name
attribute(name)
else
- raise ::ActiveAttr::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}="
__send__("attribute=", name, value)
else
- raise ::ActiveAttr::UnknownAttributeError, "unknown attribute: #{name}"
+ raise ActiveAttr::UnknownAttributeError, "unknown attribute: #{name}"
end
end
alias_method :[]=, :write_attribute
end
end