Module: CdnTags::Helpers
- Defined in:
- lib/cdn_tags/helpers.rb
Instance Method Summary collapse
Instance Method Details
#javascript_cdn_include_tag(*sources) ⇒ Object
5 6 7 8 9 |
# File 'lib/cdn_tags/helpers.rb', line 5 def javascript_cdn_include_tag(*sources) = sources. mapped_sources = CdnTags.map_sources(sources, :scripts_urls) javascript_include_tag *mapped_sources, end |
#stylesheet_cdn_link_tag(*sources) ⇒ Object
11 12 13 14 15 |
# File 'lib/cdn_tags/helpers.rb', line 11 def stylesheet_cdn_link_tag(*sources) = sources. mapped_sources = CdnTags.map_sources(sources, :stylesheets_urls) stylesheet_link_tag *mapped_sources, end |