Permalink
Browse files

Make name, event_name and code attr_accessible on promotion

  • Loading branch information...
1 parent ae06507 commit ef8e4a6af2ca643289825c6c90e2c7fc411925e6 @radar radar committed with Thomas von Deyen Apr 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 promo/app/models/spree/promotion.rb
@@ -14,6 +14,8 @@ class Promotion < Spree::Activator
alias_method :actions, :promotion_actions
accepts_nested_attributes_for :promotion_actions
+ attr_accessible :name, :event_name, :code
+
# TODO: This shouldn't be necessary with :autosave option but nested attribute updating of actions is broken without it
after_save :save_rules_and_actions
def save_rules_and_actions

0 comments on commit ef8e4a6

Please sign in to comment.