Module: ThemesForRails::UrlHelpers::InstanceMethods

Defined in:
lib/themes_for_rails/url_helpers.rb

Instance Method Summary collapse

Instance Method Details

#current_theme_image_path(asset) ⇒ Object



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

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



14
15
16
# File 'lib/themes_for_rails/url_helpers.rb', line 14

def current_theme_javascript_path(asset)
  base_theme_javascript_path(:theme => self.theme_name, :asset => "#{asset}.js")
end

#current_theme_stylesheet_path(asset) ⇒ Object



11
12
13
# File 'lib/themes_for_rails/url_helpers.rb', line 11

def current_theme_stylesheet_path(asset)
  base_theme_stylesheet_path(:theme => self.theme_name, :asset => "#{asset}.css")
end