module Tension::Controller
Public Instance Methods
action_javascript()
click to toggle source
Returns the Sprockets Asset
for the current action's JavaScript to be written into the template.
# File lib/tension/controller.rb, line 26 def action_javascript asset_context.js( request.symbolized_path_parameters[:action] ) end
action_stylesheet()
click to toggle source
Returns the Sprockets Asset
for the current action's stylesheet to be written into the template.
# File lib/tension/controller.rb, line 33 def action_stylesheet asset_context.css( request.symbolized_path_parameters[:action] ) end
asset_context()
click to toggle source
Returns the Context
for the current controller.
# File lib/tension/controller.rb, line 40 def asset_context find_asset_context( request.symbolized_path_parameters[:controller] ) end
find_asset_context(*args)
click to toggle source
Proxy to Tension::Environment.find.
# File lib/tension/controller.rb, line 46 def find_asset_context(*args) Tension.environment.find_context(*args) end