Sha256: b5dd96080ff79422f0d4fd6df14e13bb9c8d76cdc2ea50d21cbb7780dd0cb7c2

Contents?: true

Size: 248 Bytes

Versions: 8

Compression:

Stored size: 248 Bytes

Contents

module Piggybak
  class ShippingMethodValue < ActiveRecord::Base
    belongs_to :shipping_method
    validates :key, presence: true
    validates :value, presence: true
    
    def admin_label
      "#{self.key} - #{self.value}"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
piggybak-0.7.7 app/models/piggybak/shipping_method_value.rb
piggybak-0.7.6 app/models/piggybak/shipping_method_value.rb
piggybak-0.7.5 app/models/piggybak/shipping_method_value.rb
piggybak-0.7.4 app/models/piggybak/shipping_method_value.rb
piggybak-0.7.3 app/models/piggybak/shipping_method_value.rb
piggybak-0.7.2 app/models/piggybak/shipping_method_value.rb
piggybak-0.7.1 app/models/piggybak/shipping_method_value.rb
piggybak-0.7.0 app/models/piggybak/shipping_method_value.rb