Permalink
Browse files

Merge pull request #12890 from akshay-vishnoi/refactor

class methods moved to already defined class<<self block
  • Loading branch information...
2 parents 0542767 + fdf36d8 commit 83a065d181efc5eb1983cdf369bcb96c25fa9c2d @rafaelfranca rafaelfranca committed Nov 14, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 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)

0 comments on commit 83a065d

Please sign in to comment.