Module: ThemesForRails::UrlHelpers

Extended by:
ActiveSupport::Concern
Defined in:
lib/themes_for_rails/url_helpers.rb

Instance Method Summary collapse

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 = name_ext(asset)
  base_theme_image_path(:theme => self.theme_name, :asset => digest_for_image("#{image}.#{extension}", self.theme_name))
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 => digest_for_javascript("#{asset}.js", self.theme_name))
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 => digest_for_stylesheet("#{asset}.css", self.theme_name))
end