diff --git a/app/models/application_model.rb b/app/models/application_model.rb index 663e6ba58..ef8509653 100644 --- a/app/models/application_model.rb +++ b/app/models/application_model.rb @@ -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|