Skip to content

Commit

Permalink
Remove core ext dependency from test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Mar 25, 2009
1 parent 9ea840f commit af4c237
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activesupport/test/callbacks_test.rb
Expand Up @@ -7,11 +7,11 @@ class Record


class << self class << self
def callback_symbol(callback_method) def callback_symbol(callback_method)
returning("#{callback_method}_method") do |method_name| method_name = "#{callback_method}_method"
define_method(method_name) do define_method(method_name) do
history << [callback_method, :symbol] history << [callback_method, :symbol]
end
end end
method_name
end end


def callback_string(callback_method) def callback_string(callback_method)
Expand Down

0 comments on commit af4c237

Please sign in to comment.