From c777f75edd77f0c0c51db16370cf3039b958af8a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 8 Apr 2014 12:38:55 +0000 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 --- app/models/enumeration.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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)