Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix shadowed variable warnings

  • Loading branch information...
commit 78202055c971659689f6a96a5b4aa2c138cb44d2 1 parent 87378b0
@tenderlove tenderlove authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 activesupport/lib/active_support/callbacks.rb
View
10 activesupport/lib/active_support/callbacks.rb
@@ -507,9 +507,9 @@ def initialize(name, config)
@callbacks = nil
end
- def each(&block); @chain.each(&block); end
- def index(o); @chain.index(o); end
- def empty?; @chain.empty?; end
+ def each(&block); @chain.each(&block); end
+ def index(o); @chain.index(o); end
+ def empty?; @chain.empty?; end
def insert(index, o)
@callbacks = nil
@@ -629,9 +629,9 @@ def __update_callbacks(name) #:nodoc:
# existing chain rather than appended.
def set_callback(name, *filter_list, &block)
type, filters, options = normalize_callback_params(name, filter_list, block)
- chain = get_callbacks name
+ self_chain = get_callbacks name
mapped = filters.map do |filter|
- Callback.build(chain, filter, type, options.dup)
+ Callback.build(self_chain, filter, type, options.dup)
end
__update_callbacks(name) do |target, chain|
Please sign in to comment.
Something went wrong with that request. Please try again.