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.5.5 app/models/piggybak/payment_method_value.rb
piggybak-0.5.4 app/models/piggybak/payment_method_value.rb
piggybak-0.5.3 app/models/piggybak/payment_method_value.rb
piggybak-0.5.2 app/models/piggybak/payment_method_value.rb
piggybak-0.5.1 app/models/piggybak/payment_method_value.rb
piggybak-0.5.0 app/models/piggybak/payment_method_value.rb
piggybak-0.4.39 app/models/piggybak/payment_method_value.rb
piggybak-0.4.38 app/models/piggybak/payment_method_value.rb
piggybak-0.4.37 app/models/piggybak/payment_method_value.rb
piggybak-0.4.36 app/models/piggybak/payment_method_value.rb
piggybak-0.4.35 app/models/piggybak/payment_method_value.rb
piggybak-0.4.34 app/models/piggybak/payment_method_value.rb
piggybak-0.4.33 app/models/piggybak/payment_method_value.rb
piggybak-0.4.32 app/models/piggybak/payment_method_value.rb
piggybak-0.4.31 app/models/piggybak/payment_method_value.rb
piggybak-0.4.30 app/models/piggybak/payment_method_value.rb
piggybak-0.4.29 app/models/piggybak/payment_method_value.rb
piggybak-0.4.28 app/models/piggybak/payment_method_value.rb
piggybak-0.4.27 app/models/piggybak/payment_method_value.rb
piggybak-0.4.26 app/models/piggybak/payment_method_value.rb