Sha256: 69dbceca2c971e72c1156d3e90a86321909261aaf348545707277d9c145a4adc

Contents?: true

Size: 479 Bytes

Versions: 11

Compression:

Stored size: 479 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
      ::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

11 entries across 11 versions & 1 rubygems

Version Path
puffer_pages-0.0.14 lib/puffer_pages/engine.rb
puffer_pages-0.0.13 lib/puffer_pages/engine.rb
puffer_pages-0.0.12 lib/puffer_pages/engine.rb
puffer_pages-0.0.11 lib/puffer_pages/engine.rb
puffer_pages-0.0.10 lib/puffer_pages/engine.rb
puffer_pages-0.0.9 lib/puffer_pages/engine.rb
puffer_pages-0.0.8 lib/puffer_pages/engine.rb
puffer_pages-0.0.7 lib/puffer_pages/engine.rb
puffer_pages-0.0.6 lib/puffer_pages/engine.rb
puffer_pages-0.0.5 lib/puffer_pages/engine.rb
puffer_pages-0.0.4 lib/puffer_pages/engine.rb