aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/callbacks.rb
diff options
context:
space:
mode:
authorAkshay Vishnoi <akshay.vishnoi@vinsol.com>2013-11-15 00:23:35 +0530
committerAkshay Vishnoi <akshay.vishnoi@vinsol.com>2013-11-15 00:23:35 +0530
commitfdf36d8110d92f038c2a37a5282f198e3a454540 (patch)
tree657c354644677e5588be586a6fa62f68687a0be0 /actionpack/lib/action_dispatch/middleware/callbacks.rb
parent1529e610362739f793eae9474183fd2f301425ac (diff)
downloadrails-fdf36d8110d92f038c2a37a5282f198e3a454540.tar.gz
rails-fdf36d8110d92f038c2a37a5282f198e3a454540.tar.bz2
rails-fdf36d8110d92f038c2a37a5282f198e3a454540.zip
class methods moved to already defined class<<self block
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/callbacks.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/callbacks.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/callbacks.rb b/actionpack/lib/action_dispatch/middleware/callbacks.rb
index 852f1cf6f5..baf9d5779e 100644
--- a/actionpack/lib/action_dispatch/middleware/callbacks.rb
+++ b/actionpack/lib/action_dispatch/middleware/callbacks.rb
@@ -8,14 +8,14 @@ module ActionDispatch
class << self
delegate :to_prepare, :to_cleanup, :to => "ActionDispatch::Reloader"
- end
- def self.before(*args, &block)
- set_callback(:call, :before, *args, &block)
- end
+ def before(*args, &block)
+ set_callback(:call, :before, *args, &block)
+ end
- def self.after(*args, &block)
- set_callback(:call, :after, *args, &block)
+ def after(*args, &block)
+ set_callback(:call, :after, *args, &block)
+ end
end
def initialize(app)