Fix order.created_by

This commit is contained in:
Julius 2013-01-12 16:24:13 +01:00
parent 099e2b9b06
commit ce0300df43
2 changed files with 2 additions and 4 deletions

View file

@ -19,9 +19,6 @@ class Order < ActiveRecord::Base
validate :starts_before_ends, :include_articles
# Callbacks
before_create do |order|
order.created_by = User.current_user
end
after_update :update_price_of_group_orders
after_save :save_order_articles