Sha256: 35ab23e906da5047992b3585643bcbc84d94f0c66d013bf21bcade92c033975a

Contents?: true

Size: 501 Bytes

Versions: 3

Compression:

Stored size: 501 Bytes

Contents

module PufferPages
  class Engine < Rails::Engine
    config.autoload_paths << File.join(root, 'lib')

    initializer 'puffer_pages.add_cells_paths', :after => :add_view_paths do
      require 'cells'
      ::Cell::Base.prepend_view_path(Cells::DEFAULT_VIEW_PATHS.map { |path| File.join(root, path) })
    end

    initializer 'puffer_pages.add_puffer_pages_route', :after => :add_builtin_route do |app|
      app.routes_reloader.paths << File.join(root, 'config/puffer_routes.rb')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puffer_pages-0.0.3 lib/puffer_pages/engine.rb
puffer_pages-0.0.2 lib/puffer_pages/engine.rb
puffer_pages-0.0.1 lib/puffer_pages/engine.rb