Sha256: 8c6e77cd2befe84191ab10a277314238c9a757dec39e2b53cdeca4e694b1569e

Contents?: true

Size: 459 Bytes

Versions: 8

Compression:

Stored size: 459 Bytes

Contents

module MagicGrid
  class Engine < ::Rails::Engine
    # Once in production, on every page view in development
    config.to_prepare do |app|
      # no caching based on path like require does
      load 'magic_grid/helpers.rb'
    end

    initializer "magic_grid" do |app|
      # Provide some fallback translations that users can override
      app.config.i18n.load_path += Dir.glob(File.expand_path('../../locales/*.{rb,yml}', __FILE__))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
magic_grid-0.10.4 lib/magic_grid/engine.rb
magic_grid-0.10.3 lib/magic_grid/engine.rb
magic_grid-0.10.2 lib/magic_grid/engine.rb
magic_grid-0.10.1 lib/magic_grid/engine.rb
magic_grid-0.10.0 lib/magic_grid/engine.rb
magic_grid-0.9.3.1 lib/magic_grid/engine.rb
magic_grid-0.9.3 lib/magic_grid/engine.rb
magic_grid-0.9.2 lib/magic_grid/engine.rb