class Orders

Public Instance Methods

filled_date_greater_than_placed_date() click to toggle source

composed_of :price,

:class_name  => "Money",
:mapping     => [%w(price cents)],
:constructor => Proc.new { |cents, currency| Money.new(cents || 0, Money.default_currency) },
:converter   => Proc.new { |value| value.respond_to?(:to_money) ? value.to_money : raise(ArgumentError, "Can't conver #{value.class} to Money") }
# File app/models/orders.rb, line 19
def filled_date_greater_than_placed_date
  :end_date > :start_date
end