diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-14 07:34:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-14 07:34:12 +0000 |
commit | 106f6dcacefc5b39b04258f8e4cd1cbdd8339fac (patch) | |
tree | d784f2386f61368465cf6ee5aaeb6a197c918840 /app/models | |
parent | 2457f5914d906f0bacdc82bf7b26c5dabbe5a918 (diff) | |
download | redmine-106f6dcacefc5b39b04258f8e4cd1cbdd8339fac.tar.gz redmine-106f6dcacefc5b39b04258f8e4cd1cbdd8339fac.zip |
Removes a call to alias_method_chain.
git-svn-id: http://svn.redmine.org/redmine/trunk@15657 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/issue.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index d5a78717d..862d60e48 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -409,7 +409,7 @@ class Issue < ActiveRecord::Base end # Overrides assign_attributes so that project and tracker get assigned first - def assign_attributes_with_project_and_tracker_first(new_attributes, *args) + def assign_attributes(new_attributes, *args) return if new_attributes.nil? attrs = new_attributes.dup attrs.stringify_keys! @@ -419,10 +419,8 @@ class Issue < ActiveRecord::Base send "#{attr}=", attrs.delete(attr) end end - send :assign_attributes_without_project_and_tracker_first, attrs, *args + super attrs, *args end - # Do not redefine alias chain on reload (see #4838) - alias_method_chain(:assign_attributes, :project_and_tracker_first) unless method_defined?(:assign_attributes_without_project_and_tracker_first) def attributes=(new_attributes) assign_attributes new_attributes |