Sha256: 620f39ec7bbb5525b92edb46aa693253dec2a511dc36e0f35b91e500da89fba3

Contents?: true

Size: 779 Bytes

Versions: 89

Compression:

Stored size: 779 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|
      ActiveSupport.on_load :action_controller_base do
        helper EffectiveDatatablesHelper
        helper EffectiveDatatablesPrivateHelper

        ActionController::Base.send :include, ::EffectiveDatatablesControllerHelper
      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

89 entries across 89 versions & 1 rubygems

Version Path
effective_datatables-4.10.7 lib/effective_datatables/engine.rb
effective_datatables-4.10.6 lib/effective_datatables/engine.rb
effective_datatables-4.10.5 lib/effective_datatables/engine.rb
effective_datatables-4.10.4 lib/effective_datatables/engine.rb
effective_datatables-4.10.3 lib/effective_datatables/engine.rb
effective_datatables-4.10.2 lib/effective_datatables/engine.rb
effective_datatables-4.10.1 lib/effective_datatables/engine.rb
effective_datatables-4.10.0 lib/effective_datatables/engine.rb
effective_datatables-4.9.4 lib/effective_datatables/engine.rb
effective_datatables-4.9.3 lib/effective_datatables/engine.rb
effective_datatables-4.9.2 lib/effective_datatables/engine.rb
effective_datatables-4.9.1 lib/effective_datatables/engine.rb
effective_datatables-4.9.0 lib/effective_datatables/engine.rb
effective_datatables-4.8.16 lib/effective_datatables/engine.rb
effective_datatables-4.8.15 lib/effective_datatables/engine.rb
effective_datatables-4.8.14 lib/effective_datatables/engine.rb
effective_datatables-4.8.13 lib/effective_datatables/engine.rb
effective_datatables-4.8.12 lib/effective_datatables/engine.rb
effective_datatables-3.7.7 lib/effective_datatables/engine.rb
effective_datatables-4.8.11 lib/effective_datatables/engine.rb