Fixed open_orders partial.
This commit is contained in:
parent
5b2df07378
commit
adbe93f39e
3 changed files with 5 additions and 6 deletions
|
|
@ -82,7 +82,7 @@ class Order < ActiveRecord::Base
|
|||
def expired?
|
||||
!ends.nil? && ends < Time.now
|
||||
end
|
||||
|
||||
|
||||
# search GroupOrder of given Ordergroup
|
||||
def group_order(ordergroup)
|
||||
group_orders.first :conditions => { :ordergroup_id => ordergroup.id }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue