Sha256: 42804e0214efb3fe7ef9b3616fa424c0d6720c337465899cd1a49fae9522b885
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
require_relative '../../app/helpers/effective_datatables_controller_helper' require_relative '../../app/helpers/effective_datatables_helper' require_relative '../../app/helpers/effective_datatables_private_helper' module EffectiveDatatables class Engine < ::Rails::Engine engine_name 'effective_datatables' config.autoload_paths += Dir["#{config.root}/app/models/concerns", '/app/datatables/**/'] initializer 'effective_datatables.assets' do |app| app.config.assets.precompile += ['effective_datatables_manifest.js', 'images/*'] end # Include Helpers to base application initializer 'effective_datatables.action_controller' do |app| app.config.to_prepare do ActiveSupport.on_load :action_controller_base do helper EffectiveDatatablesHelper helper EffectiveDatatablesPrivateHelper ActionController::Base.send :include, ::EffectiveDatatablesControllerHelper end end end # Set up our default configuration options. initializer 'effective_datatables.defaults', before: :load_config_initializers do |app| eval File.read("#{config.root}/config/effective_datatables.rb") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
effective_datatables-3.7.10 | lib/effective_datatables/engine.rb |
effective_datatables-3.7.9 | lib/effective_datatables/engine.rb |
effective_datatables-3.7.8 | lib/effective_datatables/engine.rb |