solnic on v0.9.0
dry-bot on master
[devtools] sync (compare)
solnic on master
Update changelog.yml Bump dry-matcher to 0.9.0 (compare)
dry-bot on master
[devtools] update changelog.yml… [devtools] sync (compare)
solnic on master
Turn evaluator into an Object d… Merge pull request #32 from dry… (compare)
timriley on add-0-19-0-changelog
Add changelog entry for 0.19.0 (compare)
timriley on add-0-19-0-changelog
Add changelog entry for 0.19.0 (compare)
unique?: 'must be unique'
directly under errors:
. I did not make sure however to put the i18 before dry-v.
Dry::Validation::MissingMessageError: message for unique? was not found
configure do
config.messages = :i18n
config.namespace = :bid
config.predicates = Dagavel::Predicates
option :form
def is_no_self_bid?( user )
user.id != form.auction.user_id
end
def is_running?( auction )
auction.is_running?
end
end
# tell the I18n library where to find your translations
I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
# set default locale to something other than :en
I18n.default_locale = :en
Dry::Validation::Schema::Form.configure do |config|
config.messages = :yaml
config.messages_file = "#{Rails.root}/config/locales/en/dry-v-custom-messages.yml"
end