Navigation Menu

Skip to content

Commit

Permalink
Raise "required parameter" error for missing effective_date
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 12, 2014
1 parent 8b7de7c commit 3cccac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/droonga/catalog/base.rb
Expand Up @@ -194,7 +194,9 @@ def validate_one_or_larger_integer_parameter(value, name)
end

def validate_effective_date
validate_valid_datetime(@data["effective_date"], "effective_date")
date = @data["effective_date"]
raise MissingRequiredParameter.new("effective_date", @path) unless date
validate_valid_datetime(date, "effective_date")
end

def validate_zones
Expand Down

0 comments on commit 3cccac2

Please sign in to comment.