fix order bug
This commit is contained in:
parent
3953c21ae2
commit
3a41e9530f
5 changed files with 6 additions and 6 deletions
|
|
@ -13,7 +13,7 @@ class GroupOrderArticle < ActiveRecord::Base
|
|||
validates_inclusion_of :tolerance, :in => 0..99
|
||||
validates_uniqueness_of :order_article_id, :scope => :group_order_id # just once an article per group order
|
||||
|
||||
scope :ordered, -> { includes(:group_order => :ordergroup).order(:groups => :name) }
|
||||
scope :ordered, -> { includes(:group_order => :ordergroup).order('groups.name') }
|
||||
|
||||
localize_input_of :result
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue