Skip to content

Commit

Permalink
Fix validator message
Browse files Browse the repository at this point in the history
  • Loading branch information
phildionne committed May 9, 2015
1 parent 0403efe commit af78220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geojsonlint/geojson_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class GeojsonValidator < ActiveModel::EachValidator

def validate_each(record, attribute, value)
unless valid_geojson?(value)
message = options[:message] || "Invalid geojson"
message = options[:message] || "invalid"
record.errors.add(attribute, message)
end
end
Expand Down

0 comments on commit af78220

Please sign in to comment.