summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/enumeration.rb6
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)