Module: Money::Orm::Generic::ClassMethods

Defined in:
lib/money/orm/generic.rb

Overview

Virtual price / currency attributes

Instance Method Summary collapse

Instance Method Details

#monetize_for(*names) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/money/orm/generic.rb', line 6

def monetize_for *names
	options = names.extract_options!
	options = {:as => :priced} if options.blank?			
	names.each do |name| 
		monetize_one name, options.dup
	end
end