Module: Label::SKOSXL::Validations
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- app/models/label/skosxl/validations.rb
Instance Method Summary collapse
Instance Method Details
#origin_has_to_be_escaped ⇒ Object
16 17 18 19 20 |
# File 'app/models/label/skosxl/validations.rb', line 16 def origin_has_to_be_escaped unless Origin.new(origin).valid? errors.add :base, I18n.t('txt.models.label.origin_invalid') end end |