Sha256: fbca15ba47614e6be800e3c34634422037629059b9e331f5dc433c0769b47cb8
Contents?: true
Size: 1.22 KB
Versions: 19
Compression:
Stored size: 1.22 KB
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 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 initializer 'effective_bootstrap.action_mailer' do |app| app.config.to_prepare do ActionMailer::Base.send(:helper, EffectiveArticleEditorHelper) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems