Skip to content

Commit

Permalink
Merge pull request turbolinks#111 from kentaro/move_filter_to_before_…
Browse files Browse the repository at this point in the history
…from_after

Moved `set_xhr_current_location` to before_filter from after_filter
  • Loading branch information
dhh committed Nov 26, 2012
2 parents f806cd6 + a2ac3e8 commit 625bcb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/turbolinks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Engine < ::Rails::Engine
initializer :turbolinks_xhr_headers do |config|
ActionController::Base.class_eval do
include XHRHeaders
after_filter :set_xhr_current_location
before_filter :set_xhr_current_location
end
end
end
Expand Down

0 comments on commit 625bcb0

Please sign in to comment.