Sha256: f18d24f5a1a55f3599a0749e16356a8f79834f90313c2c468a19a8e14d859237

Contents?: true

Size: 312 Bytes

Versions: 8

Compression:

Stored size: 312 Bytes

Contents

require 'rails/railtie'
require 'cypress_dev/configuration'
require 'cypress_dev/middleware'

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cypress-on-rails-1.3.0 lib/cypress_dev/railtie.rb
cypress-on-rails-1.2.1 lib/cypress_dev/railtie.rb
cypress-on-rails-1.2.0 lib/cypress_dev/railtie.rb
cypress-on-rails-1.1.1 lib/cypress_dev/railtie.rb
cypress-on-rails-1.1.0 lib/cypress_dev/railtie.rb
cypress-on-rails-1.0.1 lib/cypress_dev/railtie.rb
cypress-on-rails-1.0.0 lib/cypress_dev/railtie.rb
cypress-on-rails-1.0.0.beta2 lib/cypress_dev/railtie.rb