Sha256: 5bcdd18cdab4498ab536fef18e8796169521083867b1ce80ba12e30092ad7848
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
module MightyGrid class Engine < ::Rails::Engine config.eager_load_namespaces << MightyGrid initializer 'mighty_grid.helpers' do |app| ActiveSupport.on_load :action_view do # 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 config.after_initialize do unless MightyGrid.configured? warn """ [Mighty Grid] Mighty Grid is not configured in the application and will use the default values. Use `rails generate mighty_grid:install` to generate the Mighty Grid configuration. """ end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mighty_grid-2.1.1 | lib/mighty_grid/engine.rb |
mighty_grid-2.1.0 | lib/mighty_grid/engine.rb |
mighty_grid-2.0.0 | lib/mighty_grid/engine.rb |
mighty_grid-2.0.0.rc1 | lib/mighty_grid/engine.rb |