-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8cc5407
commit 9ec690a
Showing
9 changed files
with
87 additions
and
71 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
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,11 @@ | ||
# frozen_string_literal: true | ||
|
||
module Phlex::Rails::Helpers::ActionCableMetaTag | ||
extend Phlex::Rails::HelperMacros | ||
|
||
# @!method action_cable_meta_tag | ||
# Outputs an "action-cable-url" meta tag with the value of the URL specified in your configuration. Ensure this is above your JavaScript tag: | ||
# @see https://api.rubyonrails.org/classes/ActionCable/Helpers/ActionCableHelper.html#method-i-action_cable_meta_tag | ||
# @return [nil] | ||
define_output_helper :action_cable_meta_tag | ||
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
module Phlex::Rails::Helpers::ActionName | ||
extend Phlex::Rails::HelperMacros | ||
|
||
# @!method action_name | ||
# @return [String] the name of the controller action, e.g. <code>"index"</code> | ||
# @see https://api.rubyonrails.org/classes/AbstractController/Base.html#method-i-action_name | ||
define_value_helper :action_name | ||
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module Phlex::Rails::Helpers::AssetPath | ||
extend Phlex::Rails::HelperMacros | ||
|
||
# @!method asset_path(source, host: nil, protocol: nil, type: nil, skip_pipeline: nil, extname: nil) | ||
# @param source [String] | ||
# @param host [String] | ||
# @param protocol [String] e.g. <code>"https"</code> | ||
# @param type [Symbol] e.g. <code>:javascript</code> | ||
# @param skip_pipeline [bool] | ||
# @param extname [String] e.g. <code>".js"</code> | ||
# @see https://api.rubyonrails.org/classes/ActionView/Helpers/AssetUrlHelper.html#method-i-asset_path | ||
define_value_helper :asset_path | ||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
module Phlex::Rails::Helpers::AssetURL | ||
extend Phlex::Rails::HelperMacros | ||
|
||
# @!method asset_url(...) | ||
define_value_helper :asset_url | ||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
module Phlex::Rails::Helpers::AudioPath | ||
extend Phlex::Rails::HelperMacros | ||
|
||
# @!method audio_path(...) | ||
define_value_helper :audio_path | ||
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
module Phlex::Rails::Helpers::AudioTag | ||
extend Phlex::Rails::HelperMacros | ||
|
||
# @!method audio_tag(...) | ||
# @return [nil] | ||
define_output_helper :audio_tag | ||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
module Phlex::Rails::Helpers::AudioURL | ||
extend Phlex::Rails::HelperMacros | ||
|
||
# @!method audio_url(...) | ||
define_value_helper :audio_url | ||
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
module Phlex::Rails::Helpers::AutoDiscoveryLinkTag | ||
extend Phlex::Rails::HelperMacros | ||
|
||
# @!method auto_discovery_link_tag(...) | ||
# @return [nil] | ||
define_output_helper :auto_discovery_link_tag | ||
end |