Updated router. Temporarly replaced routing filter with rails internal.
This commit is contained in:
parent
b71fcdf371
commit
eab16e337e
21 changed files with 190 additions and 128 deletions
|
|
@ -9,7 +9,7 @@ class OrderArticle < ActiveRecord::Base
|
|||
validates_presence_of :order_id, :article_id
|
||||
validate :article_and_price_exist
|
||||
|
||||
named_scope :ordered, :conditions => "units_to_order >= 1"
|
||||
scope :ordered, :conditions => "units_to_order >= 1"
|
||||
|
||||
|
||||
# This method returns either the ArticlePrice or the Article
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue