Permalink
Browse files

Do not allow state to be mass-assigned. State should only be changed

via the state machine.
  • Loading branch information...
1 parent 595115c commit 265c99e801b53cf731c54f0ee404f9a48a60978e @schof schof committed with radar Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/models/spree/shipment.rb
@@ -14,7 +14,7 @@ class Shipment < ActiveRecord::Base
attr_accessor :special_instructions
- attr_accessible :order, :state, :shipping_method, :special_instructions,
+ attr_accessible :order, :shipping_method, :special_instructions,
:shipping_method_id, :tracking, :address, :inventory_units
accepts_nested_attributes_for :address

0 comments on commit 265c99e

Please sign in to comment.