Sha256: be231bec04e6d8afae640fa8ed75ed48a8369783d55dbe3d39cc34d404b43120

Contents?: true

Size: 281 Bytes

Versions: 25

Compression:

Stored size: 281 Bytes

Contents

module Piggybak
  class TaxMethodValue < ActiveRecord::Base
    belongs_to :tax_method
    validates_presence_of :key
    validates_presence_of :value
    attr_accessible :key, :value, :tax_method_id
    
    def admin_label
      "#{self.key} - #{self.value}"
    end  
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
piggybak-0.6.34 app/models/piggybak/tax_method_value.rb
piggybak-0.6.33 app/models/piggybak/tax_method_value.rb
piggybak-0.6.32 app/models/piggybak/tax_method_value.rb
piggybak-0.6.31 app/models/piggybak/tax_method_value.rb
piggybak-0.6.30 app/models/piggybak/tax_method_value.rb
piggybak-0.6.29 app/models/piggybak/tax_method_value.rb
piggybak-0.6.28 app/models/piggybak/tax_method_value.rb
piggybak-0.6.27 app/models/piggybak/tax_method_value.rb
piggybak-0.6.26 app/models/piggybak/tax_method_value.rb
piggybak-0.6.25 app/models/piggybak/tax_method_value.rb
piggybak-0.6.24 app/models/piggybak/tax_method_value.rb
piggybak-0.6.23 app/models/piggybak/tax_method_value.rb
piggybak-0.6.22 app/models/piggybak/tax_method_value.rb
piggybak-0.6.21 app/models/piggybak/tax_method_value.rb
piggybak-0.6.20 app/models/piggybak/tax_method_value.rb
piggybak-0.6.19 app/models/piggybak/tax_method_value.rb
piggybak-0.6.18 app/models/piggybak/tax_method_value.rb
piggybak-0.6.17 app/models/piggybak/tax_method_value.rb
piggybak-0.6.16 app/models/piggybak/tax_method_value.rb
piggybak-0.6.15 app/models/piggybak/tax_method_value.rb