Sha256: 7fbc8cb25fbd29cb71ef1c7a2a454e350749fc3fe3edee2a54525ed59553b90d

Contents?: true

Size: 325 Bytes

Versions: 17

Compression:

Stored size: 325 Bytes

Contents

module Gorynich
  class Engine < ::Rails::Engine
    isolate_namespace Gorynich

    initializer 'gorynich.add_middleware' do |app|
      app.middleware.insert_after ActionDispatch::RemoteIp, Gorynich::Head::RackMiddleware
      app.config.active_record.writing_role = :default
      app.config.hosts.clear
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gorynich-1.3.4.273062 lib/gorynich/engine.rb
gorynich-1.3.3.231946 lib/gorynich/engine.rb
gorynich-1.3.2.231715 lib/gorynich/engine.rb
gorynich-1.3.1.213701 lib/gorynich/engine.rb
gorynich-1.3.0.213297 lib/gorynich/engine.rb
gorynich-1.2.3.198656 lib/gorynich/engine.rb
gorynich-1.2.2.198643 lib/gorynich/engine.rb
gorynich-1.2.1.184916 lib/gorynich/engine.rb
gorynich-1.2.0.180668 lib/gorynich/engine.rb
gorynich-1.1.1.148381 lib/gorynich/engine.rb
gorynich-1.1.0.142168 lib/gorynich/engine.rb
gorynich-1.1.0.142154 lib/gorynich/engine.rb
gorynich-1.1.0.142147 lib/gorynich/engine.rb
gorynich-1.1.0.142142 lib/gorynich/engine.rb
gorynich-1.1.0.142139 lib/gorynich/engine.rb
gorynich-1.1.0.142136 lib/gorynich/engine.rb
gorynich-1.1.0.142046 lib/gorynich/engine.rb