Sha256: 58343d4b2feb31a6e257863632661e609c450fc58f159dd19063a114ef8deb4f

Contents?: true

Size: 685 Bytes

Versions: 15

Compression:

Stored size: 685 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 do
        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

15 entries across 15 versions & 1 rubygems

Version Path
effective_datatables-3.6.3 lib/effective_datatables/engine.rb
effective_datatables-3.6.1 lib/effective_datatables/engine.rb
effective_datatables-3.6.0 lib/effective_datatables/engine.rb
effective_datatables-3.5.4 lib/effective_datatables/engine.rb
effective_datatables-3.5.3 lib/effective_datatables/engine.rb
effective_datatables-3.5.2 lib/effective_datatables/engine.rb
effective_datatables-3.5.0 lib/effective_datatables/engine.rb
effective_datatables-3.4.8 lib/effective_datatables/engine.rb
effective_datatables-3.4.7 lib/effective_datatables/engine.rb
effective_datatables-3.4.6 lib/effective_datatables/engine.rb
effective_datatables-3.4.5 lib/effective_datatables/engine.rb
effective_datatables-3.4.4 lib/effective_datatables/engine.rb
effective_datatables-3.4.3 lib/effective_datatables/engine.rb
effective_datatables-3.4.2 lib/effective_datatables/engine.rb
effective_datatables-3.4.1 lib/effective_datatables/engine.rb