Sha256: efca069376bf87dba83cbff7855314327503761812016f9c4323021a26b5e89b

Contents?: true

Size: 240 Bytes

Versions: 8

Compression:

Stored size: 240 Bytes

Contents

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