Class: Dynabute::Values::SelectValue
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Dynabute::Values::SelectValue
- Includes:
- Base
- Defined in:
- lib/dynabute/values/select_value.rb
Instance Method Summary collapse
Instance Method Details
#ensure_option_is_in_same_field ⇒ Object
8 9 10 11 12 13 |
# 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 |