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
This commit is contained in:
Toshi MARUYAMA 2014-04-08 12:38:55 +00:00
parent ce2b12957f
commit c777f75edd
1 changed files with 6 additions and 0 deletions

View File

@ -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)