From c777f75edd77f0c0c51db16370cf3039b958af8a 2014-04-08 12:38:55 From: Toshi MARUYAMA Date: 2014-04-08 12:38:55 Subject: [PATCH] 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 --- diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 866f746..b4b64b7 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)