diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-14 11:30:14 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-14 11:30:14 -0700 |
commit | c5953f7dba20a6706a9f3dcce4cb43d7d91aad33 (patch) | |
tree | 9eece3df7fb005064a43b49dbea000f47b5e5772 /activesupport | |
parent | bd95ff84f3199fba2c35c2727182672ac75c08b2 (diff) | |
download | rails-c5953f7dba20a6706a9f3dcce4cb43d7d91aad33.tar.gz rails-c5953f7dba20a6706a9f3dcce4cb43d7d91aad33.tar.bz2 rails-c5953f7dba20a6706a9f3dcce4cb43d7d91aad33.zip |
rename terminal to halting, try to keep naming consistent
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index d0c3f4bde9..0f6610825f 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -110,10 +110,10 @@ module ActiveSupport def self.build(next_callback, user_callback, user_conditions, chain_config, filter) if chain_config.key?(:terminator) && user_conditions.any? halted_lambda = eval "lambda { |result| #{chain_config[:terminator]} }" - terminal_and_conditional(next_callback, user_callback, user_conditions, halted_lambda, filter) + halting_and_conditional(next_callback, user_callback, user_conditions, halted_lambda, filter) elsif chain_config.key? :terminator halted_lambda = eval "lambda { |result| #{chain_config[:terminator]} }" - terminal(next_callback, user_callback, halted_lambda, filter) + halting(next_callback, user_callback, halted_lambda, filter) elsif user_conditions.any? conditional(next_callback, user_callback, user_conditions) else @@ -123,7 +123,7 @@ module ActiveSupport private - def self.terminal_and_conditional(next_callback, user_callback, user_conditions, halted_lambda, filter) + def self.halting_and_conditional(next_callback, user_callback, user_conditions, halted_lambda, filter) lambda { |env| target = env.target value = env.value @@ -140,7 +140,7 @@ module ActiveSupport } end - def self.terminal(next_callback, user_callback, halted_lambda, filter) + def self.halting(next_callback, user_callback, halted_lambda, filter) lambda { |env| target = env.target value = env.value |