Skip to content
Browse files

Adding safe_attributes line for issue patch. Fixes bug #1.

  • Loading branch information...
1 parent b1d1985 commit 5b8d8c3c855ced229755b27000e4f3a54b35dfea @peelman committed Jul 25, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/redmine_cc_addresses/issue_patch.rb
View
3 lib/redmine_cc_addresses/issue_patch.rb
@@ -5,7 +5,8 @@ module IssuePatch
def self.included(base) # :nodoc:
# Same as typing in the class
base.class_eval do
- unloadable
+ safe_attributes 'cc_addresses_attributes'
+ unloadable
belongs_to :deliverable
has_many :cc_addresses, :class_name => 'CcAddress', :foreign_key => 'issue_id', :dependent => :delete_all
accepts_nested_attributes_for :cc_addresses, :reject_if => lambda { |cc_address| cc_address[:mail].blank? }, :allow_destroy => true

0 comments on commit 5b8d8c3

Please sign in to comment.
Something went wrong with that request. Please try again.