Sha256: 1644d912f5b4bd3e2a7b02256085a3d433ed5e89c04ec1ba9cd44ee21808d059
Contents?: true
Size: 1.24 KB
Versions: 6
Compression:
Stored size: 1.24 KB
Contents
module EffectivePages class Engine < ::Rails::Engine engine_name 'effective_pages' # Include acts_as_tagged concern and allow any ActiveRecord object to call it initializer 'effective_pages.active_record' do |app| app.config.to_prepare do ActiveSupport.on_load :active_record do ActiveRecord::Base.extend(ActsAsTagged::Base) end end end # Include Helpers to base application initializer 'effective_pages.action_controller' do |app| app.config.to_prepare do ActiveSupport.on_load :action_controller_base do helper EffectivePagesHelper helper EffectiveCarouselsHelper helper EffectivePageSectionsHelper helper EffectivePageSegmentsHelper helper EffectivePageBannersHelper helper EffectiveMenusHelper helper EffectiveAlertsHelper helper EffectivePermalinksHelper helper EffectiveTagsHelper end end end # Set up our default configuration options. initializer "effective_pages.defaults", before: :load_config_initializers do |app| # Set up our defaults, as per our initializer template eval File.read("#{config.root}/config/effective_pages.rb") end end end
Version data entries
6 entries across 6 versions & 1 rubygems