aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/abstract/callbacks.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-05-07 10:45:29 -0500
committerJoshua Peek <josh@joshpeek.com>2009-05-07 10:45:29 -0500
commita747ab5b20b9d543e9d311070e3b720c761ae716 (patch)
treec8e671f1f6a722b56d5ca005977fbe2e210ffda5 /actionpack/lib/action_controller/abstract/callbacks.rb
parentaf40fa6d036d86895e7be4ef46a615d44eb41ede (diff)
downloadrails-a747ab5b20b9d543e9d311070e3b720c761ae716.tar.gz
rails-a747ab5b20b9d543e9d311070e3b720c761ae716.tar.bz2
rails-a747ab5b20b9d543e9d311070e3b720c761ae716.zip
Whitespace!
Diffstat (limited to 'actionpack/lib/action_controller/abstract/callbacks.rb')
-rw-r--r--actionpack/lib/action_controller/abstract/callbacks.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/abstract/callbacks.rb b/actionpack/lib/action_controller/abstract/callbacks.rb
index d7faaf4236..cb8aade0be 100644
--- a/actionpack/lib/action_controller/abstract/callbacks.rb
+++ b/actionpack/lib/action_controller/abstract/callbacks.rb
@@ -13,7 +13,7 @@ module AbstractController
super
end
end
-
+
module ClassMethods
def _normalize_callback_options(options)
if only = options[:only]
@@ -21,11 +21,11 @@ module AbstractController
options[:per_key] = {:if => only}
end
if except = options[:except]
- except = Array(except).map {|e| "action_name == :#{e}"}.join(" || ")
+ except = Array(except).map {|e| "action_name == :#{e}"}.join(" || ")
options[:per_key] = {:unless => except}
end
end
-
+
[:before, :after, :around].each do |filter|
class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
def #{filter}_filter(*names, &blk)
@@ -40,4 +40,4 @@ module AbstractController
end
end
end
-end \ No newline at end of file
+end