Sha256: 696aab0a3542040052e9d29fafb99290fe4f410a888e39e819fcdb5e4a29e36d

Contents?: true

Size: 242 Bytes

Versions: 54

Compression:

Stored size: 242 Bytes

Contents

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

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
piggybak-0.4.25 app/models/piggybak/payment_method_value.rb
piggybak-0.4.24 app/models/piggybak/payment_method_value.rb
piggybak-0.4.23 app/models/piggybak/payment_method_value.rb
piggybak-0.4.22 app/models/piggybak/payment_method_value.rb
piggybak-0.4.21 app/models/piggybak/payment_method_value.rb
piggybak-0.4.20 app/models/piggybak/payment_method_value.rb
piggybak-0.4.19 app/models/piggybak/payment_method_value.rb
piggybak-0.4.18 app/models/piggybak/payment_method_value.rb
piggybak-0.4.17 app/models/piggybak/payment_method_value.rb
piggybak-0.4.16 app/models/piggybak/payment_method_value.rb
piggybak-0.4.15 app/models/piggybak/payment_method_value.rb
piggybak-0.4.14 app/models/piggybak/payment_method_value.rb
piggybak-0.4.13 app/models/piggybak/payment_method_value.rb
piggybak-0.4.12 app/models/piggybak/payment_method_value.rb
piggybak-0.4.11 app/models/piggybak/payment_method_value.rb
piggybak-0.4.10 app/models/piggybak/payment_method_value.rb
piggybak-0.4.9 app/models/piggybak/payment_method_value.rb
piggybak-0.4.8 app/models/piggybak/payment_method_value.rb
piggybak-0.4.7.1 app/models/piggybak/payment_method_value.rb
piggybak-0.4.7 app/models/piggybak/payment_method_value.rb