Sha256: 899099459ff72bee21e02bc7674d59446c79c1520cc069497536ae7ada2daf77

Contents?: true

Size: 587 Bytes

Versions: 13

Compression:

Stored size: 587 Bytes

Contents

module MightyGrid

  class MightyGridEngine < ::Rails::Engine
    initializer 'mighty_grid_railtie.configure_rails_initialization' do |app|

      ActiveSupport.on_load :action_controller do
        ActionController::Base.send(:include, MightyGrid::Controller)
      end

      ActiveSupport.on_load :action_view do
        ::ActionView::Base.class_eval { include MightyGrid::GridViewHelper }

        # It is here only until this pull request is pulled: https://github.com/amatsuda/kaminari/pull/267
        require 'mighty_grid/kaminari_monkey_patching'
      end

    end
  end
  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mighty_grid-0.6.0 lib/mighty_grid/engine.rb
mighty_grid-0.5.0 lib/mighty_grid/engine.rb
mighty_grid-0.4.0 lib/mighty_grid/engine.rb
mighty_grid-0.3.3 lib/mighty_grid/engine.rb
mighty_grid-0.3.2 lib/mighty_grid/engine.rb
mighty_grid-0.3.1 lib/mighty_grid/engine.rb
mighty_grid-0.3.0 lib/mighty_grid/engine.rb
mighty_grid-0.2.2 lib/mighty_grid/engine.rb
mighty_grid-0.2.1 lib/mighty_grid/engine.rb
mighty_grid-0.2.0 lib/mighty_grid/engine.rb
mighty_grid-0.1.0 lib/mighty_grid/engine.rb
mighty_grid-0.0.6 lib/mighty_grid/engine.rb
mighty_grid-0.0.5 lib/mighty_grid/engine.rb