class Dynabute::Values::SelectValue
Public Instance Methods
ensure_option_is_in_same_field()
click to toggle source
# File lib/dynabute/values/select_value.rb, line 8 def ensure_option_is_in_same_field if option && (option.field_id != field_id) errors[:value] << I18n.t('errors.messages.dynabutes.wrong_field_option', default: 'is pointing to the option for other dynabute field') end end