Sha256: 66c90c80b704f17910a6754c9a1e6e22023501d418a0ed913405749760db61fb

Contents?: true

Size: 240 Bytes

Versions: 63

Compression:

Stored size: 240 Bytes

Contents

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

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
piggybak-0.6.8 app/models/piggybak/shipping_method_value.rb
piggybak-0.6.7 app/models/piggybak/shipping_method_value.rb
piggybak-0.6.6 app/models/piggybak/shipping_method_value.rb
piggybak-0.6.5 app/models/piggybak/shipping_method_value.rb
piggybak-0.6.4 app/models/piggybak/shipping_method_value.rb
piggybak-0.6.3 app/models/piggybak/shipping_method_value.rb
piggybak-0.6.2 app/models/piggybak/shipping_method_value.rb
piggybak-0.6.1 app/models/piggybak/shipping_method_value.rb
piggybak-0.6.0 app/models/piggybak/shipping_method_value.rb
piggybak-0.5.5 app/models/piggybak/shipping_method_value.rb
piggybak-0.5.4 app/models/piggybak/shipping_method_value.rb
piggybak-0.5.3 app/models/piggybak/shipping_method_value.rb
piggybak-0.5.2 app/models/piggybak/shipping_method_value.rb
piggybak-0.5.1 app/models/piggybak/shipping_method_value.rb
piggybak-0.5.0 app/models/piggybak/shipping_method_value.rb
piggybak-0.4.39 app/models/piggybak/shipping_method_value.rb
piggybak-0.4.38 app/models/piggybak/shipping_method_value.rb
piggybak-0.4.37 app/models/piggybak/shipping_method_value.rb
piggybak-0.4.36 app/models/piggybak/shipping_method_value.rb
piggybak-0.4.35 app/models/piggybak/shipping_method_value.rb