Sha256: 5bfe2eae4e9b9af59443088e20dbba928f1b90d97768afd465d763f672407930

Contents?: true

Size: 673 Bytes

Versions: 6

Compression:

Stored size: 673 Bytes

Contents

require 'rails'
require 'pageflow/rails_version'

module PageflowScrolled
  # Rails integration
  class Engine < ::Rails::Engine
    isolate_namespace PageflowScrolled

    lib = root.join('lib')

    config.autoload_paths << lib
    config.eager_load_paths << lib

    initializer 'pageflow_scrolled.autoloading' do
      Rails.autoloaders.main.ignore(
        lib.join('generators'),
        lib.join('tasks')
      )
    end

    config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.yml').to_s]

    initializer 'pageflow_scrolled.assets.precompile' do |app|
      app.config.assets.precompile += %w[pageflow_scrolled/legacy.js]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pageflow-17.0.4 entry_types/scrolled/lib/pageflow_scrolled/engine.rb
pageflow-17.0.3 entry_types/scrolled/lib/pageflow_scrolled/engine.rb
pageflow-17.0.2 entry_types/scrolled/lib/pageflow_scrolled/engine.rb
pageflow-17.0.1 entry_types/scrolled/lib/pageflow_scrolled/engine.rb
pageflow-17.0.0 entry_types/scrolled/lib/pageflow_scrolled/engine.rb
pageflow-16.2.0 entry_types/scrolled/lib/pageflow_scrolled/engine.rb