Improved error handling.
This commit is contained in:
parent
d6d21e6cfe
commit
0b525ca3d9
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ returns
|
|||
|
||||
def self.param_cleanup(params)
|
||||
|
||||
if params == nil
|
||||
raise "No params for #{self.to_s}!"
|
||||
end
|
||||
|
||||
# only use object attributes
|
||||
data = {}
|
||||
self.new.attributes.each {|item|
|
||||
|
|
Loading…
Reference in a new issue