You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Replace warn [DEPRECATION] to ActiveSupport::Deprecation.warn
Use ActiveSupport::Deprecation::DeprecatedConstantProxy for exceptions with deprecation
Replace Validator::Base initialize by inherited
* Add shared example deprecated_class and update specs accordingly
Fix rubocop
* Changelog entry
warn'[DEPRECATION] The values validator except option is deprecated. ' \
14
-
'Use the except validator instead.'if@excepts
13
+
ActiveSupport::Deprecation.warn('The values validator except option is deprecated. Use the except validator instead.')if@excepts
15
14
16
15
raiseArgumentError,'proc must be a Proc'if@proc && !@proc.is_a?(Proc)
17
16
18
-
warn'[DEPRECATION] The values validator proc option is deprecated. ' \
19
-
'The lambda expression can now be assigned directly to values.'if@proc
17
+
ActiveSupport::Deprecation.warn('The values validator proc option is deprecated. The lambda expression can now be assigned directly to values.')if@proc
0 commit comments