diff --git a/app/adapters/adapter.rb b/app/adapters/adapter.rb index bb615c31..9d7b3f71 100644 --- a/app/adapters/adapter.rb +++ b/app/adapters/adapter.rb @@ -20,6 +20,7 @@ def map_simple(model_field, public_field) # @param [Symbol] public_field # @param [String] date_format The Date format to use. def map_date(model_field, public_field, date_format) + raise ArgumentError, "date_format cannot be nil" if date_format.nil? map_from_public public_field do |value| {model_field => time_from_public(value)} end