diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-04-08 12:38:55 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-04-08 12:38:55 +0000 |
commit | c777f75edd77f0c0c51db16370cf3039b958af8a (patch) | |
tree | ca9f44f5f0e0a6aa4318abd4a7fb4e9d1814fae1 /app/models | |
parent | ce2b12957fa04f7acd201138e6a7b83e340d33e4 (diff) | |
download | redmine-c777f75edd77f0c0c51db16370cf3039b958af8a.tar.gz redmine-c777f75edd77f0c0c51db16370cf3039b958af8a.zip |
mark deprecated Enumeration#overridding_change? which was changed in r13056
git-svn-id: http://svn.redmine.org/redmine/trunk@13086 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/enumeration.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 866f7466b..b4b64b7fc 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -103,6 +103,12 @@ class Enumeration < ActiveRecord::Base subclasses end + # TODO: remove in Redmine 3.0 + def self.overridding_change?(new, previous) + ActiveSupport::Deprecation.warn "Enumeration#overridding_change? is deprecated and will be removed in Redmine 3.0. Please use #overriding_change?." + overriding_change?(new, previous) + end + # Does the +new+ Hash override the previous Enumeration? def self.overriding_change?(new, previous) if (same_active_state?(new['active'], previous.active)) && same_custom_values?(new,previous) |