File tree 3 files changed +7
-16
lines changed
3 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 1
- * Deprecate ` .halt_and_display_warning_on_return_false ` .
1
+ * Deprecate ` .halt_callback_chains_on_return_false ` .
2
2
3
3
* Rafael Mendonça França*
4
4
Original file line number Diff line number Diff line change @@ -80,11 +80,15 @@ def self.eager_load!
80
80
cattr_accessor :test_order # :nodoc:
81
81
82
82
def self . halt_callback_chains_on_return_false
83
- Callbacks . halt_and_display_warning_on_return_false
83
+ ActiveSupport ::Deprecation . warn ( <<-MSG . squish )
84
+ ActiveSupport.halt_callback_chains_on_return_false is deprecated and will be removed in Rails 5.2.
85
+ MSG
84
86
end
85
87
86
88
def self . halt_callback_chains_on_return_false = ( value )
87
- Callbacks . halt_and_display_warning_on_return_false = value
89
+ ActiveSupport ::Deprecation . warn ( <<-MSG . squish )
90
+ ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2.
91
+ MSG
88
92
end
89
93
90
94
def self . to_time_preserves_timezone
Original file line number Diff line number Diff line change @@ -69,19 +69,6 @@ module Callbacks
69
69
70
70
CALLBACK_FILTER_TYPES = [ :before , :after , :around ]
71
71
72
- def self . halt_and_display_warning_on_return_false = ( value )
73
-
74
- ActiveSupport ::Deprecation . warn ( <<-MSG . squish )
75
- .halt_and_display_warning_on_return_false= is deprecated and will be removed in Rails 5.2.
76
- MSG
77
- end
78
-
79
- def self . halt_and_display_warning_on_return_false
80
- ActiveSupport ::Deprecation . warn ( <<-MSG . squish )
81
- .halt_and_display_warning_on_return_false is deprecated and will be removed in Rails 5.2.
82
- MSG
83
- end
84
-
85
72
# Runs the callbacks for the given event.
86
73
#
87
74
# Calls the before and around callbacks in the order they were set, yields
You can’t perform that action at this time.
0 commit comments