Module: ActsAsPriceable::Schema::TableDefinition
- Defined in:
- lib/acts_as_priceable/schema.rb
Instance Method Summary collapse
Instance Method Details
#price(*price_names) ⇒ Object
46 47 48 49 50 51 52 |
# File 'lib/acts_as_priceable/schema.rb', line 46 def price(*price_names) price_names.each do |price_name| COLUMNS.each do |column_name, column_type| column("#{price_name}_#{column_name}", column_type) end end end |