Sha256: 16073549488c909a19eb1e5d073b774c01effa27ded21630296ad3a544006785

Contents?: true

Size: 281 Bytes

Versions: 5

Compression:

Stored size: 281 Bytes

Contents

module SpreeMobility::CoreExt::Spree::ShippingMethodDecorator
  def self.prepended(base)
    base.include SpreeMobility::Translatable
    SpreeMobility.translates_for base, :name
    
    base.translation_class.class_eval do
      validates :name, presence: true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_mobility-1.4.0 lib/spree_mobility/core_ext/spree/shipping_method_decorator.rb
spree_mobility-1.3.0 lib/spree_mobility/core_ext/spree/shipping_method_decorator.rb
spree_mobility-1.2.0 lib/spree_mobility/core_ext/spree/shipping_method_decorator.rb
spree_mobility-1.1.0 lib/spree_mobility/core_ext/spree/shipping_method_decorator.rb
spree_mobility-1.0.0 lib/spree_mobility/core_ext/spree/shipping_method_decorator.rb