Sha256: 0a70224eeeba0956b9f5459c67231cc3c1113cf8feee61b0968727fa713d0bbe

Contents?: true

Size: 507 Bytes

Versions: 7

Compression:

Stored size: 507 Bytes

Contents

require_relative '../../app/helpers/bookends/application_helper'
module Bookends
  class Engine < ::Rails::Engine
    isolate_namespace Bookends

    initializer 'bookends.action_controller' do |app|
      ActiveSupport.on_load :action_controller do
        helper Bookends::ApplicationHelper
      end
    end

    initializer "bookends.routes", before: :load_config_initializers do |app|
      Rails.application.routes.append do
        mount Bookends::Engine, at: '/bookends'
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bookends-10.4.6 lib/bookends/engine.rb
bookends-10.4.5 lib/bookends/engine.rb
bookends-10.4.4 lib/bookends/engine.rb
bookends-10.4.3 lib/bookends/engine.rb
bookends-10.4.2 lib/bookends/engine.rb
bookends-10.4.1 lib/bookends/engine.rb
bookends-10.4.0 lib/bookends/engine.rb