diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-23 16:18:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-23 16:18:27 +0000 |
commit | c1e7146498b457c085415d67ba55922aed1b8c13 (patch) | |
tree | 31ef0fd936e3b313a8570daef0afd7d08552952e /app/models/tracker.rb | |
parent | 4f10dc20e6600b907f97a0beada77b9193250bde (diff) | |
download | redmine-c1e7146498b457c085415d67ba55922aed1b8c13.tar.gz redmine-c1e7146498b457c085415d67ba55922aed1b8c13.zip |
Removes deprecated methods.
git-svn-id: http://svn.redmine.org/redmine/trunk@16871 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/tracker.rb')
-rw-r--r-- | app/models/tracker.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/tracker.rb b/app/models/tracker.rb index 9524a620c..d90ab3e15 100644 --- a/app/models/tracker.rb +++ b/app/models/tracker.rb @@ -27,12 +27,7 @@ class Tracker < ActiveRecord::Base before_destroy :check_integrity belongs_to :default_status, :class_name => 'IssueStatus' has_many :issues - has_many :workflow_rules, :dependent => :delete_all do - def copy(source_tracker) - ActiveSupport::Deprecation.warn "tracker.workflow_rules.copy is deprecated and will be removed in Redmine 4.0, use tracker.copy_worflow_rules instead" - proxy_association.owner.copy_workflow_rules(source_tracker) - end - end + has_many :workflow_rules, :dependent => :delete_all has_and_belongs_to_many :projects has_and_belongs_to_many :custom_fields, :class_name => 'IssueCustomField', :join_table => "#{table_name_prefix}custom_fields_trackers#{table_name_suffix}", :association_foreign_key => 'custom_field_id' acts_as_positioned |