lib/resourcelogic/self.rb in resourcelogic-0.12.5 vs lib/resourcelogic/self.rb in resourcelogic-0.12.6
- old
+ new
@@ -116,10 +116,10 @@
params.key?(:id)
end
# The parameter hash that contains the object attributes.
def attributes
- params[object_name]
+ params[object_name] || {}
end
def attributes?
params.key?(object_name)
end
\ No newline at end of file