Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/turbolinks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Controller

included do
include Redirection
include Rendering
end
end

Expand Down
11 changes: 11 additions & 0 deletions lib/turbolinks/rendering.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Turbolinks
module Rendering
extend ActiveSupport::Concern

def render(*)
super.tap do
response.headers["Turbolinks-Status"] = "OK"
end
end
end
end