You need to sign in or sign up before continuing.

Search

Advanced search is enabled.
Showing 1 - 20 of 2167 code results for  rails -filename:gemfile.lock  in
of GitLab.org / GitLab
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'
#######################
# rspec job base specs
.rails-job-base:
  extends:
    - .default-retry
---
# Rails update guidelines
We strive to run GitLab using the latest Rails releases to benefit from performance, security updates, and new features.
---
# Rails console **(FREE SELF)**
At the heart of GitLab is a web application
import Rails from '@rails/ujs';
import { confirmViaGlModal } from './confirm_via_gl_modal/confirm_via_gl_modal';
import { ignoreWhilePending } from './ignore_while_pending';
[[ -z "${RAILS_FOLDER}" ]] && { echo >&2 "RAILS_FOLDER env variable is not set"; abort_bisect; }
if ! grep -q -E "gem 'rails'.+RAILS_VERSION.+RAILS_FOLDER" $GITLAB_DIR/Gemfile; then
require 'rubocop_spec_helper'
require_relative '../../../../rubocop/cop/gitlab/rails_logger'
RSpec.describe RuboCop::Cop::Gitlab::RailsLogger do
# This Rack middleware is intended to measure the latency between
# gitlab-workhorse forwarding a request to the Rails application and the
# time this middleware is reached.
  module Cop
    module Gitlab
      class RailsLogger < ::RuboCop::Cop::Cop
        include CodeReuseHelpers
if Gitlab.config.gitlab.allowed_hosts.present?
  Rails.application.config.hosts << Gitlab.config.gitlab.host << 'unix'
  Rails.application.config.hosts += Gitlab.config.gitlab.allowed_hosts
end
beforeAll(async () => {
  // @rails/ujs expects jQuery.ajaxPrefilter to exist if jQuery exists at
  // import time. This is only a problem in tests, since we expose jQuery
  // globally earlier than in production builds. Work around this by pretending
# frozen_string_literal: true
# For specs which don't load Rails, provide a path to Rails root
module FastRailsRoot
  RAILS_ROOT = File.absolute_path("#{__dir__}/../../..")
# frozen_string_literal: true
# Backported from Rails 7.0
# Initial support for has_many :through was implemented in https://github.com/rails/rails/pull/41937
# Support for has_one :through was implemented in https://github.com/rails/rails/pull/42079
require 'spec_helper'
RSpec.describe 'Rails asset host initializer' do
  def load_initializer
    load Rails.root.join('config/initializers/rails_asset_host.rb')
---
# Rails initializers
By default, Rails loads Zeitwerk after the initializers in `config/initializers` are loaded.
diff --git a/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js b/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js
index 2176247..1a83d48 100644
--- a/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js
require 'spec_helper'
RSpec.describe Gitlab::Middleware::RailsQueueDuration do
  let(:app) { double(:app) }
  let(:middleware) { described_class.new(app) }
---
# GitLab Rails Console Cheat Sheet **(FREE SELF)**
This is the GitLab Support Team's collection of information regarding the GitLab Rails
# frozen_string_literal: true
module RailsHelpers
  def stub_rails_env(env_name)
    allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new(env_name))
if Gitlab.config.gitlab.cdn_host.present?
  Rails.application.configure do
    config.after_initialize do
      # Enable serving of images, stylesheets, and JavaScripts from an asset server