-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from WriterZephos/0.1.4_development
Version 0.1.4
- Loading branch information
Showing
11 changed files
with
989 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
example_id | status | run_time | | ||
-------------------------------------------------------------------------- | ------ | --------------- | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:1:1] | passed | 0.00399 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:2:1:1:1] | passed | 0.04985 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:2:1:2:1] | passed | 0.00811 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:2:2:1] | passed | 0.00269 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:3:1] | passed | 0.00846 seconds | | ||
./spec/turbo_router/controllers/default_test_controller_spec.rb[1:1:1:1:1] | passed | 0.00597 seconds | | ||
./spec/turbo_router/controllers/default_test_controller_spec.rb[1:1:1:2:1] | passed | 0.00672 seconds | | ||
./spec/turbo_router/controllers/default_test_controller_spec.rb[1:1:1:3:1] | passed | 0.00429 seconds | | ||
./spec/turbo_router/controllers/default_test_controller_spec.rb[1:1:2:1] | passed | 0.00241 seconds | | ||
./spec/turbo_router/controllers/helper_test_controller_spec.rb[1:1:1:1] | passed | 0.00412 seconds | | ||
./spec/turbo_router_spec.rb[1:1] | passed | 0.00106 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:1:1] | passed | 0.00495 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:2:1:1:1] | passed | 0.03875 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:2:1:2:1] | passed | 0.00642 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:2:2:1] | passed | 0.00245 seconds | | ||
./spec/turbo_router/controllers/custom_test_controller_spec.rb[1:3:1] | passed | 0.00873 seconds | | ||
./spec/turbo_router/controllers/default_test_controller_spec.rb[1:1:1:1:1] | passed | 0.00562 seconds | | ||
./spec/turbo_router/controllers/default_test_controller_spec.rb[1:1:1:2:1] | passed | 0.00632 seconds | | ||
./spec/turbo_router/controllers/default_test_controller_spec.rb[1:1:1:3:1] | passed | 0.00421 seconds | | ||
./spec/turbo_router/controllers/default_test_controller_spec.rb[1:1:2:1] | passed | 0.00247 seconds | | ||
./spec/turbo_router/controllers/helper_test_controller_spec.rb[1:1:1:1] | passed | 0.00392 seconds | | ||
./spec/turbo_router/helpers/application_helpers_spec.rb[1:1:1:1] | passed | 0.00012 seconds | | ||
./spec/turbo_router/helpers/application_helpers_spec.rb[1:1:2:1] | passed | 0.00024 seconds | | ||
./spec/turbo_router_spec.rb[1:1] | passed | 0.00088 seconds | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module TurboRouter | ||
module ApplicationHelpers | ||
def turbo_router_frame_id_for_request | ||
request.headers["Turbo-frame"].present? ? request.headers["Turbo-frame"] : "turbo_router_content" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
# frozen_string_literal: true | ||
require "pry" | ||
|
||
module TurboRouter | ||
class Railtie < Rails::Railtie | ||
initializer "turbo_router.view_helpers" do | ||
ActiveSupport.on_load(:action_view) { include TurboRouter::ViewHelpers } | ||
ActiveSupport.on_load(:action_view) do | ||
include TurboRouter::ViewHelpers | ||
include TurboRouter::ApplicationHelpers | ||
end | ||
end | ||
|
||
initializer 'turbo_router.controller_helpers' do | ||
ActiveSupport.on_load(:action_controller) { include TurboRouter::ApplicationHelpers } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<%= turbo_frame_tag(turbo_router_frame_id_for_request, **turbo_router_frame_options) do %> | ||
<%= turbo_frame_tag(turbo_router_frame_id_for_request) do %> | ||
<%= yield %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.