lib/rack-ajax/decision_tree.rb in ajax-0.1.4 vs lib/rack-ajax/decision_tree.rb in ajax-0.1.5

- old
+ new

@@ -1,9 +1,9 @@ module Rack class Ajax module DecisionTree - + # Decision tree for Rack rewrites and redirects. # # To use your own decision tree set it on the <tt>Ajax</tt> instance with: # # Ajax.decision_tree = Proc.new do @@ -15,11 +15,11 @@ # completeness. def default_decision_tree @@default_decision_tree ||= Proc.new do ::Ajax.logger.debug("[ajax] rack session #{@env['rack.session'].inspect}") ::Ajax.logger.debug("[ajax] Ajax-Info #{@env['Ajax-Info'].inspect}") - + if !::Ajax.exclude_path?(@env['PATH_INFO'] || @env['REQUEST_URI']) if ajax_request? if hashed_url? # the browser never sends the hashed part rewrite_to_traditional_url_from_fragment end @@ -50,10 +50,10 @@ end end end end end - end + end end end end end end \ No newline at end of file