##// END OF EJS Templates
Removes a call to alias_method_chain....
Jean-Philippe Lang -
r15275:106f6dcacefc
parent child
Show More
@@ -409,7 +409,7 class Issue < ActiveRecord::Base
409 end
409 end
410
410
411 # Overrides assign_attributes so that project and tracker get assigned first
411 # Overrides assign_attributes so that project and tracker get assigned first
412 def assign_attributes_with_project_and_tracker_first(new_attributes, *args)
412 def assign_attributes(new_attributes, *args)
413 return if new_attributes.nil?
413 return if new_attributes.nil?
414 attrs = new_attributes.dup
414 attrs = new_attributes.dup
415 attrs.stringify_keys!
415 attrs.stringify_keys!
@@ -419,10 +419,8 class Issue < ActiveRecord::Base
419 send "#{attr}=", attrs.delete(attr)
419 send "#{attr}=", attrs.delete(attr)
420 end
420 end
421 end
421 end
422 send :assign_attributes_without_project_and_tracker_first, attrs, *args
422 super attrs, *args
423 end
423 end
424 # Do not redefine alias chain on reload (see #4838)
425 alias_method_chain(:assign_attributes, :project_and_tracker_first) unless method_defined?(:assign_attributes_without_project_and_tracker_first)
426
424
427 def attributes=(new_attributes)
425 def attributes=(new_attributes)
428 assign_attributes new_attributes
426 assign_attributes new_attributes
General Comments 0
You need to be logged in to leave comments. Login now