Sha256: e458512869208a69796aeff361cd38f0198022bb409cf1f87f9d60111c63597a
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
module SpreeMobility::CoreExt::Spree::OptionTypeDecorator def self.prepended(base) base.include SpreeMobility::Translatable SpreeMobility.translates_for base, :name, :presentation base.translation_class.class_eval do validates :name, presence: true, uniqueness: { scope: :locale, case_sensitive: false, allow_blank: true } validates :presentation, presence: true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_mobility-1.0.0 | lib/spree_mobility/core_ext/spree/option_type_decorator.rb |