Module: Tension::Helper
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/tension/helper.rb
Overview
Helper is included in ActionView::Helpers so it can be called from templates and layouts.
Instance Method Summary collapse
-
#best_javascript(*args) ⇒ Object
Determines the best JavaScript to be included in a template based on the current controller and action.
-
#best_stylesheet(*args) ⇒ Object
Determines the best stylesheet to be included in a template based on the current controller and action.
Instance Method Details
#best_javascript(*args) ⇒ Object
Determines the best JavaScript to be included in a template based on the current controller and action.
20 21 22 |
# File 'lib/tension/helper.rb', line 20 def best_javascript(*args) asset_for( Tension::JS, *args ) end |
#best_stylesheet(*args) ⇒ Object
Determines the best stylesheet to be included in a template based on the current controller and action.
13 14 15 |
# File 'lib/tension/helper.rb', line 13 def best_stylesheet(*args) asset_for( Tension::CSS, *args ) end |