Sha256: 0f80d6bcef4755d4bb36cfcae54982f7ad16d1f37649670a943bfda31056f227

Contents?: true

Size: 246 Bytes

Versions: 8

Compression:

Stored size: 246 Bytes

Contents

module Piggybak
  class PaymentMethodValue < ActiveRecord::Base
    belongs_to :payment_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/payment_method_value.rb
piggybak-0.7.6 app/models/piggybak/payment_method_value.rb
piggybak-0.7.5 app/models/piggybak/payment_method_value.rb
piggybak-0.7.4 app/models/piggybak/payment_method_value.rb
piggybak-0.7.3 app/models/piggybak/payment_method_value.rb
piggybak-0.7.2 app/models/piggybak/payment_method_value.rb
piggybak-0.7.1 app/models/piggybak/payment_method_value.rb
piggybak-0.7.0 app/models/piggybak/payment_method_value.rb