Sha256: a02eefbdbd5816d518d7a0030ee0c4d10b6aae95108309fdac07012a1c23529a

Contents?: true

Size: 1016 Bytes

Versions: 22

Compression:

Stored size: 1016 Bytes

Contents

module EffectiveBootstrap
  class Engine < ::Rails::Engine
    engine_name 'effective_bootstrap'

    # Set up our default configuration options.
    initializer 'effective_bootstrap.defaults', before: :load_config_initializers do |app|
      eval File.read("#{config.root}/config/effective_bootstrap.rb")
    end

    initializer 'effective_bootstrap.assets' do |app|
      app.config.assets.precompile += [
        'effective_bootstrap_manifest.js',
        'effective_bootstrap_article_editor.css',
        'icons/*'
      ]
    end

    initializer 'effective_bootstrap.action_text' do |app|
      if defined?(ActionText)
        ActionText::ContentHelper.allowed_attributes << 'style'
      end
    end

    # Adds a before_action to application controller
    initializer 'effective_bootstrap.action_controller' do |app|
      if EffectiveBootstrap.save_tabs
        app.config.to_prepare do
          ApplicationController.send(:include, EffectiveBootstrap::SaveTabs)
        end
      end
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
effective_bootstrap-0.11.13 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.12 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.11 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.10 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.9 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.8 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.7 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.6 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.5 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.4 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.3 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.2 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.1 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.11.0 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.10.17 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.10.16 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.10.15 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.10.14 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.10.13 lib/effective_bootstrap/engine.rb
effective_bootstrap-0.10.12 lib/effective_bootstrap/engine.rb