Sha256: d723c5e5d745b56ac3de4b6bc50b74a88b70e1b2be2be6b82ab5cbe8be10d900

Contents?: true

Size: 830 Bytes

Versions: 52

Compression:

Stored size: 830 Bytes

Contents

module EffectiveDatatables
  class Engine < ::Rails::Engine
    engine_name 'effective_datatables'

    config.autoload_paths += Dir["#{config.root}/app/models/concerns", '/app/datatables/**/']

    # 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

52 entries across 52 versions & 1 rubygems

Version Path
effective_datatables-4.14.1 lib/effective_datatables/engine.rb
effective_datatables-4.14.0 lib/effective_datatables/engine.rb
effective_datatables-4.13.5 lib/effective_datatables/engine.rb
effective_datatables-4.13.4 lib/effective_datatables/engine.rb
effective_datatables-4.13.3 lib/effective_datatables/engine.rb
effective_datatables-4.13.2 lib/effective_datatables/engine.rb
effective_datatables-4.13.1 lib/effective_datatables/engine.rb
effective_datatables-4.13.0 lib/effective_datatables/engine.rb
effective_datatables-4.12.0 lib/effective_datatables/engine.rb
effective_datatables-4.11.2 lib/effective_datatables/engine.rb
effective_datatables-4.11.1 lib/effective_datatables/engine.rb
effective_datatables-4.11.0 lib/effective_datatables/engine.rb