Skip to content

Commit

Permalink
Allow calculator_type and calculator_attributes to be mass-assigned w…
Browse files Browse the repository at this point in the history
…hen creating a PromotionAction
  • Loading branch information
radar committed Jul 10, 2012
1 parent c096dcf commit fb889eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promo/app/models/spree/promotion_action.rb
Expand Up @@ -6,7 +6,7 @@ class PromotionAction < ActiveRecord::Base

scope :of_type, lambda {|t| {:conditions => {:type => t}}}

attr_accessible :line_items_string
attr_accessible :line_items_string, :calculator_type, :calculator_attributes

# This method should be overriden in subclass
# Updates the state of the order or performs some other action depending on the subclass
Expand Down

0 comments on commit fb889eb

Please sign in to comment.