Sha256: 73182f7c44deacbcd2bd0172f8f804a5f80da931aad4ac0e8025674f5eaf97c0
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
module ThemesForRails class << self attr_writer :base_dir def base_dir @base_dir ||= Rails.root end def available_themes Dir.glob("#{base_dir}/themes/*") end def available_theme_names @available_theme_names ||= available_themes.map {|theme| File.basename(theme) } end end end require 'active_support/dependencies' require 'themes_for_rails/common_methods' require 'themes_for_rails/url_helpers' require 'themes_for_rails/view_helpers' require 'themes_for_rails/assets_controller' require 'themes_for_rails/controller_methods' require 'themes_for_rails/railtie' require 'themes_for_rails/routes' require 'themes_for_rails/version'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
themes_for_rails-0.2.5 | lib/themes_for_rails.rb |
themes_for_rails-0.2.4 | lib/themes_for_rails.rb |
themes_for_rails-0.2.2 | lib/themes_for_rails.rb |