aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract/callbacks_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2012-12-07 18:54:26 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2012-12-07 18:54:44 +0100
commit9d62e04838f01f5589fa50b0baa480d60c815e2c (patch)
treee8f973d7fbac7d7de8d49a28d13ac6dcc823170b /actionpack/test/abstract/callbacks_test.rb
parentc2052846f4551d9eb24bb66ce7b05b23abc6cd1f (diff)
downloadrails-9d62e04838f01f5589fa50b0baa480d60c815e2c.tar.gz
rails-9d62e04838f01f5589fa50b0baa480d60c815e2c.tar.bz2
rails-9d62e04838f01f5589fa50b0baa480d60c815e2c.zip
Rename all action callbacks from *_filter to *_action
Diffstat (limited to 'actionpack/test/abstract/callbacks_test.rb')
-rw-r--r--actionpack/test/abstract/callbacks_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/test/abstract/callbacks_test.rb b/actionpack/test/abstract/callbacks_test.rb
index 5d1a703c55..10b93d5d31 100644
--- a/actionpack/test/abstract/callbacks_test.rb
+++ b/actionpack/test/abstract/callbacks_test.rb
@@ -84,11 +84,11 @@ module AbstractController
end
class Callback3 < ControllerWithCallbacks
- before_filter do |c|
+ before_action do |c|
c.instance_variable_set("@text", "Hello world")
end
- after_filter do |c|
+ after_action do |c|
c.instance_variable_set("@second", "Goodbye")
end
@@ -114,8 +114,8 @@ module AbstractController
end
class CallbacksWithConditions < ControllerWithCallbacks
- before_filter :list, :only => :index
- before_filter :authenticate, :except => :index
+ before_action :list, :only => :index
+ before_action :authenticate, :except => :index
def index
self.response_body = @list.join(", ")
@@ -202,7 +202,7 @@ module AbstractController
end
class ChangedConditions < Callback2
- before_filter :first, :only => :index
+ before_action :first, :only => :index
def not_index
@text ||= nil