Module: CabezaDeTermo::AssetsPublisher::Helper
- Defined in:
- lib/cabeza-de-termo/assets-publisher/helpers/helper.rb
Overview
The View helper. To use it, add this to your view:
module Web module Views class YourView include CabezaDeTermo::AssetsPublisher::Helper … end end end
This will publish only one method to your views: #assets_publisher. From that method you can call the Publisher protocol.
Instance Method Summary collapse
-
#assets_publisher ⇒ Object
Answer the Publisher to collect and publish stylesheets and javascripts from your current view.
Instance Method Details
#assets_publisher ⇒ Object
Answer the Publisher to collect and publish stylesheets and javascripts from your current view.
22 23 24 |
# File 'lib/cabeza-de-termo/assets-publisher/helpers/helper.rb', line 22 def assets_publisher Publisher.new end |