Class: ThemesupportController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/theme_support/themesupport_controller.rb

Overview

The controller for serving/cacheing theme content…

Instance Method Summary collapse

Instance Method Details

#errorObject



19
20
21
# File 'lib/theme_support/themesupport_controller.rb', line 19

def error
  render :nothing => true, :status => 404
end

#imagesObject



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

#javascriptObject



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

#stylesheetsObject



7
8
9
# File 'lib/theme_support/themesupport_controller.rb', line 7

def stylesheets
  render_theme_item(:stylesheets, params[:filename].join('/'), params[:theme])
end