timriley on remove-auto-register
Remove commented code (compare)
timriley on remove-auto-register
Remove no-longer-relevant doc (compare)
timriley on remove-auto-register
Remove another unneeded splat (compare)
timriley on remove-auto-register
Li’l tweak (compare)
timriley on remove-auto-register
Li’l tweak (compare)
timriley on remove-auto-register
Simplify args passed to build_f… (compare)
timriley on remove-auto-register
Further simplify args for build… (compare)
timriley on remove-auto-register
Remove `auto_register!` and add… Provide the default loader to a… Simplify args passed to build_f… (compare)
timriley on rich-component-dirs-config
Accept plain options hash inste… (compare)
require 'i18n'
require 'cell/translation'
require 'reform/form/dry'
require 'disposable/twin/coercion'
en:
errors:
in_possession?: 'is not in possession of deviation'
is_conversion_correct?: 'is incorrectly converted from P to $'
not_blank?: 'is blank'
rules:
auction:
autobuy_amount_is_above_start_bid?: 'must be greater than start bid'
currency_accepted?: 'select at least one currency'
is_conversion_correct?: 'is incorrectly converted from P to $'
bid:
is_no_self_bid?: 'must not bid on own auction'
is_running?: 'is not running'
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