Updated router. Temporarly replaced routing filter with rails internal.

This commit is contained in:
benni 2011-05-11 12:21:21 +02:00
parent b71fcdf371
commit eab16e337e
21 changed files with 190 additions and 128 deletions

View file

@ -4,7 +4,7 @@ class Delivery < ActiveRecord::Base
has_one :invoice
has_many :stock_changes, :dependent => :destroy
named_scope :recent, :order => 'created_at DESC', :limit => 10
scope :recent, :order => 'created_at DESC', :limit => 10
validates_presence_of :supplier_id