Sha256: 0fab9743c0f78e3a9a7210087eea64d5b055592c485f6158b873940eb400a71e

Contents?: true

Size: 569 Bytes

Versions: 9

Compression:

Stored size: 569 Bytes

Contents

require 'magic_grid/logger'

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

    initializer "Rails logger" do
      MagicGrid.logger = Rails.logger
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
magic_grid-0.12.6 lib/magic_grid/engine.rb
magic_grid-0.12.5 lib/magic_grid/engine.rb
magic_grid-0.12.4 lib/magic_grid/engine.rb
magic_grid-0.12.3 lib/magic_grid/engine.rb
magic_grid-0.12.2 lib/magic_grid/engine.rb
magic_grid-0.12.1 lib/magic_grid/engine.rb
magic_grid-0.12.0 lib/magic_grid/engine.rb
magic_grid-0.11.1 lib/magic_grid/engine.rb
magic_grid-0.11.0 lib/magic_grid/engine.rb