Improved error handling.

This commit is contained in:
Martin Edenhofer 2013-09-20 13:40:58 +02:00
parent d6d21e6cfe
commit 0b525ca3d9

View file

@ -39,6 +39,10 @@ returns
def self.param_cleanup(params) def self.param_cleanup(params)
if params == nil
raise "No params for #{self.to_s}!"
end
# only use object attributes # only use object attributes
data = {} data = {}
self.new.attributes.each {|item| self.new.attributes.each {|item|