Sha256: 8577032a296fc854d58cee6ffc131c2ecc55791248333c4ab4e29cb6bc465aa5

Contents?: true

Size: 902 Bytes

Versions: 1

Compression:

Stored size: 902 Bytes

Contents

require 'pageflow-public-i18n'
require 'pageflow/panorama/zip_entry_paperclip_io_adapter'

module Pageflow
  module Panorama
    class Engine < Rails::Engine
      isolate_namespace Pageflow::Panorama

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

      if Rails.respond_to?(:autoloaders)
        lib = root.join('lib')

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

        initializer 'pageflow_panorama.autoloading' do
          Rails.autoloaders.main.ignore(
            root.join('lib/generators'),
            root.join('lib/pageflow/panorama/configuration.rb'),
            root.join('lib/pageflow/panorama/version.rb'),
            root.join('lib/pageflow/panorama/zip_entry_paperclip_io_adapter.rb')
          )
        end
      else
        config.paths.add('lib', eager_load: true)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pageflow-panorama-2.4.0 lib/pageflow/panorama/engine.rb