Sha256: dbc2991a1c7f94a188f5b2aea1125f7a1ebdd085b75ac552690bd7272b90e79b

Contents?: true

Size: 642 Bytes

Versions: 6

Compression:

Stored size: 642 Bytes

Contents

if defined?(CypressOnRails)
  CypressOnRails.configure do |c|
    c.cypress_folder = File.expand_path("#{__dir__}/../../<%= options.cypress_folder %>")
    # WARNING!! CypressOnRails can execute arbitrary ruby code
    # please use with extra caution if enabling on hosted servers or starting your local server on 0.0.0.0
    c.use_middleware = !Rails.env.production?
    c.logger = Rails.logger
  end

  # # if you compile your asssets on CI
  # if ENV['CYPRESS'].present? && ENV['CI'].present?
  #  Rails.application.configure do
  #    config.assets.compile = false
  #    config.assets.unknown_asset_fallback = false
  #  end
  # end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cypress-on-rails-1.12.1 lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb
cypress-on-rails-1.12.0 lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb
cypress-on-rails-1.11.0 lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb
cypress-on-rails-1.10.1 lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb
cypress-on-rails-1.9.1 lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb
cypress-on-rails-1.9.0 lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb