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:
parent
ce2b12957f
commit
c777f75edd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue