lib/tarquinn/engine.rb in tarquinn-0.1.0 vs lib/tarquinn/engine.rb in tarquinn-0.2.0

- old
+ new

@@ -16,16 +16,16 @@ def perform_redirect? handler_redirector.present? end def handler_redirector - @handler_redirector ||= handlers.find { |h| h.perform_redirect? } + @handler_redirector ||= handlers.find(&:perform_redirect?) end def handlers @handlers ||= build_handlers end def build_handlers - configs.map { |_,c| Tarquinn::Handler.new(c, controller) } + configs.map { |_, c| Tarquinn::Handler.new(c, controller) } end end