File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated string based terminators for ` ActiveSupport::Callbacks ` .
2
+
3
+ * Eileen M. Uchitelle*
4
+
1
5
* Fixed an issue when using
2
6
` ActiveSupport::NumberHelper::NumberToDelimitedConverter ` to
3
7
convert a value that is an ` ActiveSupport::SafeBuffer ` introduced
Original file line number Diff line number Diff line change @@ -724,12 +724,6 @@ def reset_callbacks(name)
724
724
# would call <tt>Audit#save</tt>.
725
725
def define_callbacks ( *names )
726
726
options = names . extract_options!
727
- if options . key? ( :terminator ) && String === options [ :terminator ]
728
- ActiveSupport ::Deprecation . warn "String based terminators are deprecated, please use a lambda"
729
- value = options [ :terminator ]
730
- line = class_eval "lambda { |result| #{ value } }" , __FILE__ , __LINE__
731
- options [ :terminator ] = lambda { |target , result | target . instance_exec ( result , &line ) }
732
- end
733
727
734
728
names . each do |name |
735
729
class_attribute "_#{ name } _callbacks"
You can’t perform that action at this time.
0 commit comments