Module: ThemesForRails::UrlHelpers
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/themes_for_rails/url_helpers.rb
Instance Method Summary collapse
- #current_theme_image_path(asset) ⇒ Object
- #current_theme_javascript_path(asset) ⇒ Object
- #current_theme_stylesheet_path(asset) ⇒ Object
Instance Method Details
#current_theme_image_path(asset) ⇒ Object
21 22 23 24 |
# File 'lib/themes_for_rails/url_helpers.rb', line 21 def current_theme_image_path(asset) image, extension = asset.split(".") base_theme_image_path(:theme => self.theme_name, :asset => "#{image}.#{extension}") end |
#current_theme_javascript_path(asset) ⇒ Object
17 18 19 |
# File 'lib/themes_for_rails/url_helpers.rb', line 17 def current_theme_javascript_path(asset) base_theme_javascript_path(:theme => self.theme_name, :asset => "#{asset}.js") end |
#current_theme_stylesheet_path(asset) ⇒ Object
13 14 15 |
# File 'lib/themes_for_rails/url_helpers.rb', line 13 def current_theme_stylesheet_path(asset) base_theme_stylesheet_path(:theme => self.theme_name, :asset => "#{asset}.css") end |