Sha256: 7acf7540d21d91b677029a6b8aab77292e8f57138a8c65ccd85a57acdff4bfb6
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 Bytes
Contents
module ThemesForRails class << self def config @config ||= ThemesForRails::Config.new yield(@config) if block_given? @config end def available_themes Dir.glob(File.join(config.base_dir, config.themes_dir, "*")) end def available_theme_names available_themes.map {|theme| File.basename(theme) } end end end require 'active_support/dependencies' require 'themes_for_rails/config' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
themes_for_rails-0.3.1 | lib/themes_for_rails.rb |
themes_for_rails-0.3.0 | lib/themes_for_rails.rb |