Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

class methods moved to already defined class<<self block

  • Loading branch information...
commit fdf36d8110d92f038c2a37a5282f198e3a454540 1 parent 1529e61
@akshay-vishnoi akshay-vishnoi authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 actionpack/lib/action_dispatch/middleware/callbacks.rb
View
12 actionpack/lib/action_dispatch/middleware/callbacks.rb
@@ -8,14 +8,14 @@ class Callbacks
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)
Please sign in to comment.
Something went wrong with that request. Please try again.