Class: ThemesForRails::AssetsController

Inherits:
ActionController::Base
  • Object
show all
Includes:
CommonMethods, UrlHelpers
Defined in:
lib/themes_for_rails/assets_controller.rb

Instance Method Summary collapse

Methods included from CommonMethods

#add_theme_view_path, #add_theme_view_path_for, #public_theme_path, #set_theme, #theme_name, #theme_name=, #theme_path, #theme_path_for, #valid_theme?, #view_path_for

Instance Method Details

#imagesObject



17
18
19
# File 'lib/themes_for_rails/assets_controller.rb', line 17

def images
  handle_asset(params[:asset], params[:theme], "images")
end

#javascriptsObject



13
14
15
# File 'lib/themes_for_rails/assets_controller.rb', line 13

def javascripts
  handle_asset(params[:asset], params[:theme], "javascripts")
end

#stylesheetsObject



9
10
11
# File 'lib/themes_for_rails/assets_controller.rb', line 9

def stylesheets
  handle_asset(params[:asset], params[:theme], "stylesheets")
end