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.30.1 lib/effective_datatables/engine.rb
effective_datatables-4.30.0 lib/effective_datatables/engine.rb
effective_datatables-4.29.0 lib/effective_datatables/engine.rb
effective_datatables-4.26.0 lib/effective_datatables/engine.rb
effective_datatables-4.25.3 lib/effective_datatables/engine.rb
effective_datatables-4.25.2 lib/effective_datatables/engine.rb
effective_datatables-4.25.1 lib/effective_datatables/engine.rb
effective_datatables-4.25.0 lib/effective_datatables/engine.rb
effective_datatables-4.24.2 lib/effective_datatables/engine.rb
effective_datatables-4.24.1 lib/effective_datatables/engine.rb
effective_datatables-4.24.0 lib/effective_datatables/engine.rb
effective_datatables-4.23.0 lib/effective_datatables/engine.rb
effective_datatables-4.22.3 lib/effective_datatables/engine.rb
effective_datatables-4.22.2 lib/effective_datatables/engine.rb
effective_datatables-4.22.1 lib/effective_datatables/engine.rb
effective_datatables-4.22.0 lib/effective_datatables/engine.rb
effective_datatables-4.21.1 lib/effective_datatables/engine.rb
effective_datatables-4.21.0 lib/effective_datatables/engine.rb
effective_datatables-4.20.6 lib/effective_datatables/engine.rb
effective_datatables-4.20.5 lib/effective_datatables/engine.rb