Skip to content

Commit

Permalink
Added before and after hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dvorkin committed Jan 20, 2012
1 parent e6af47f commit 95c88e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dio/controller.rb
Expand Up @@ -124,13 +124,13 @@ class << self
def routes(group = nil, scope = {}, &block)
puts "routes(#{group.inspect}, #{scope.inspect})"
@rules ||= begin
self.class.instance_eval do
# self.class.instance_eval do
[ :get, :post, :put, :delete, :any ].each do |verb|
define_method verb do |rule|
@rules << [ verb, *rule.flatten ]
end
end
end
# end
[]
end

Expand Down

0 comments on commit 95c88e2

Please sign in to comment.