Sha256: db224cd56204d386ad35112ce44e804f256f555d36b4a2c704fb06e1986d97a2

Contents?: true

Size: 620 Bytes

Versions: 4

Compression:

Stored size: 620 Bytes

Contents

# ActiveSupport.on_load(:action_view) { include Devise::Controllers::UrlHelpers }

module ThemesForRails
  class Railtie < ::Rails::Railtie
    config.themes_for_rails = ActiveSupport::OrderedOptions.new

    config.to_prepare do
      ThemesForRails::Railtie.config.themes_for_rails.each do |key, value|
        ThemesForRails.config.send "#{key}=".to_sym, value
      end
      
      # Adding theme stylesheets path to sass, automatically. 
      ThemesForRails.add_themes_path_to_sass if ThemesForRails.config.use_sass?
      
    end
    
    rake_tasks do
      load "tasks/themes_for_rails.rake"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
themes_for_rails-0.4.3 lib/themes_for_rails/railtie.rb
themes_for_rails-0.4.2 lib/themes_for_rails/railtie.rb
themes_for_rails-0.4.1 lib/themes_for_rails/railtie.rb
themes_for_rails-0.4.0 lib/themes_for_rails/railtie.rb