Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove core ext dependency from test

  • Loading branch information...
commit af4c2375a270c7ddd71269593427a1d9f23be515 1 parent 9ea840f
@jeremy jeremy authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/test/callbacks_test.rb
View
8 activesupport/test/callbacks_test.rb
@@ -7,11 +7,11 @@ class Record
class << self
def callback_symbol(callback_method)
- returning("#{callback_method}_method") do |method_name|
- define_method(method_name) do
- history << [callback_method, :symbol]
- end
+ method_name = "#{callback_method}_method"
+ define_method(method_name) do
+ history << [callback_method, :symbol]
end
+ method_name
end
def callback_string(callback_method)
Please sign in to comment.
Something went wrong with that request. Please try again.