Sha256: 6fe2b8a2233bf0b7b42011ddaa622d97a33ece6eea0c0de72d1349434e6d5bf2
Contents?: true
Size: 415 Bytes
Versions: 9
Compression:
Stored size: 415 Bytes
Contents
require 'datatable/helper' require 'rails' module Datatable class Railtie < ::Rails::Railtie initializer 'datatable.load_later' do datatable_path = Rails.application.config.eager_load_paths.grep(/app\/datatable/) Rails.application.config.eager_load_paths -= datatable_path end initializer "datatable.helper" do ActionView::Base.send :include, Datatable::Helper end end end
Version data entries
9 entries across 9 versions & 1 rubygems