@@ -103,6 +103,12 class Enumeration < ActiveRecord::Base | |||||
103 | subclasses |
|
103 | subclasses | |
104 | end |
|
104 | end | |
105 |
|
105 | |||
|
106 | # TODO: remove in Redmine 3.0 | |||
|
107 | def self.overridding_change?(new, previous) | |||
|
108 | ActiveSupport::Deprecation.warn "Enumeration#overridding_change? is deprecated and will be removed in Redmine 3.0. Please use #overriding_change?." | |||
|
109 | overriding_change?(new, previous) | |||
|
110 | end | |||
|
111 | ||||
106 | # Does the +new+ Hash override the previous Enumeration? |
|
112 | # Does the +new+ Hash override the previous Enumeration? | |
107 | def self.overriding_change?(new, previous) |
|
113 | def self.overriding_change?(new, previous) | |
108 | if (same_active_state?(new['active'], previous.active)) && same_custom_values?(new,previous) |
|
114 | if (same_active_state?(new['active'], previous.active)) && same_custom_values?(new,previous) |
General Comments 0
You need to be logged in to leave comments.
Login now