Class: ThemesupportController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ThemesupportController
- Defined in:
- lib/theme_support/themesupport_controller.rb
Overview
The controller for serving/cacheing theme content…
Instance Method Summary collapse
Instance Method Details
#error ⇒ Object
19 20 21 |
# File 'lib/theme_support/themesupport_controller.rb', line 19 def error render :nothing => true, :status => 404 end |
#images ⇒ Object
15 16 17 |
# File 'lib/theme_support/themesupport_controller.rb', line 15 def images render_theme_item(:images, params[:filename].to_s, params[:theme]) end |
#javascript ⇒ Object
11 12 13 |
# File 'lib/theme_support/themesupport_controller.rb', line 11 def javascript render_theme_item(:javascripts, params[:filename].join('/'), params[:theme], 'text/javascript') end |
#stylesheets ⇒ Object
7 8 9 |
# File 'lib/theme_support/themesupport_controller.rb', line 7 def stylesheets render_theme_item(:stylesheets, params[:filename].join('/'), params[:theme]) end |