Sha256: 673e6a7d43679f647f7d70b009be243bacd94cb5e15f6028e2ea2245a331ef21

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 Bytes

Contents

require 'rails/railtie'
require 'cypress_on_rails/configuration'
require 'cypress_on_rails/middleware'

module CypressOnRails
  class Railtie < Rails::Railtie
    initializer :setup_cypress_middleware do |app|
      if CypressOnRails.configuration.use_middleware?
        app.middleware.use Middleware
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cypress-on-rails-1.6.0 lib/cypress_on_rails/railtie.rb
cypress-on-rails-1.5.1 lib/cypress_on_rails/railtie.rb
cypress-on-rails-1.5.0 lib/cypress_on_rails/railtie.rb
cypress-on-rails-1.4.2 lib/cypress_on_rails/railtie.rb
cypress-on-rails-1.4.1 lib/cypress_on_rails/railtie.rb
cypress-on-rails-1.4.0 lib/cypress_on_rails/railtie.rb