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
|
|
@ -1,7 +1,7 @@
|
|||
class StockArticle < Article
|
||||
has_many :stock_changes
|
||||
|
||||
named_scope :available, :conditions => "quantity > 0"
|
||||
scope :available, :conditions => "quantity > 0"
|
||||
|
||||
before_destroy :check_quantity
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue