Module: Sprockets::Helpers::RailsHelper
- Defined in:
- lib/assets_precompile_enforcer/sprockets/helpers/rails_helper.rb
Instance Method Summary collapse
- #javascript_include_tag_with_enforced_precompile(*sources) ⇒ Object
- #stylesheet_link_tag_with_enforced_precompile(*sources) ⇒ Object
Instance Method Details
#javascript_include_tag_with_enforced_precompile(*sources) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/assets_precompile_enforcer/sprockets/helpers/rails_helper.rb', line 6 def javascript_include_tag_with_enforced_precompile(*sources) (sources).each do |source| ensure_asset_will_be_precompiled!(source, 'js') if enforce_precompile? end javascript_include_tag_without_enforced_precompile(*sources) end |
#stylesheet_link_tag_with_enforced_precompile(*sources) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/assets_precompile_enforcer/sprockets/helpers/rails_helper.rb', line 14 def stylesheet_link_tag_with_enforced_precompile(*sources) (sources).each do |source| ensure_asset_will_be_precompiled!(source, 'css') if enforce_precompile? end stylesheet_link_tag_without_enforced_precompile(*sources) end |