Module: ThemesForRails::Routes
- Included in:
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/themes_for_rails/routes.rb
Instance Method Summary collapse
Instance Method Details
#themes_for_rails ⇒ Object
3 4 5 6 7 8 |
# File 'lib/themes_for_rails/routes.rb', line 3 def themes_for_rails theme_dir = ThemesForRails.config.themes_dir match "#{theme_dir}/:theme/stylesheets/*asset" => 'themes_for_rails/assets#stylesheets', :as => :base_theme_stylesheet match "#{theme_dir}/:theme/javascripts/*asset" => 'themes_for_rails/assets#javascripts', :as => :base_theme_javascript match "#{theme_dir}/:theme/images/*asset" => 'themes_for_rails/assets#images', :as => :base_theme_image end |