Skip to content

Commit

Permalink
Merge branch 'daslicious-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeen committed Jan 28, 2018
2 parents 1328ceb + 1ce1fe6 commit 155d583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tracking_number/active_model_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def validate_each(record, attribute, value)
elsif TrackingNumber.new(value).valid?
# looks good to me
else
record.errors[attribute] << options[:message] || 'is not a valid tracking number'
record.errors[attribute] << (options[:message] || 'is not a valid tracking number')
end
end
end

0 comments on commit 155d583

Please sign in to comment.