gitlab-org--gitlab-foss/config/initializers
blackst0ne ddcce35c28 [Rails5] Avoid type casting in uniqueness validator
This commit does two things:
1. Synchronizes `Gemfile.rails5.lock` with the latest changes in `Gemfile`
2. Adds a monkey patch for active record to avoid type casting in uniqueness
validator.

In Rails 5.0 there was introduced a bug [1] that causes to problems like
this:

```
1) API::Users POST /user/:id/gpg_keys/:key_id/revoke when authenticated revokes existing key
Failure/Error: let(:gpg_key) { create(:gpg_key, user: user) }
TypeError:
  can't cast Hash
```

This bug was fixed in Rails 5.1 [2].

[1]: 811a4fa8eb
[2]: aa062318c4
2018-04-19 13:31:11 +11:00
..
0_acts_as_taggable.rb Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
0_as_concern.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
0_inflections.rb Incorporate review 2017-09-04 15:44:46 +02:00
0_post_deployment_migrations.rb Port some non-EE-specific config/ changes to CE 2018-01-25 14:14:53 +01:00
1_settings.rb Merge branch 'master' into 'stuartnelson3/gitlab-ce-stn/issue-due-email' 2018-04-10 10:25:59 +00:00
2_app.rb
5_backend.rb Reinstall shell on the test env if it's outdated 2017-06-19 17:06:17 -04:00
6_validations.rb Route path lookups through legacy_disk_path 2018-03-21 18:18:32 +01:00
7_prometheus_metrics.rb Update prometheus-client-mmap gem to highly optimized version 2017-12-07 17:47:23 +01:00
7_redis.rb Support multiple Redis instances based on queue type 2017-07-11 03:35:47 +00:00
8_gitaly.rb Remove option to disable Gitaly completely 2017-07-07 12:48:34 +02:00
8_metrics.rb Add CommonMark markdown engine 2018-03-07 23:14:41 +11:00
active_record_array_type_casting.rb [Rails5] Update type_cast_*_database methods 2018-04-06 10:57:19 +00:00
active_record_avoid_type_casting_in_uniqueness_validator.rb [Rails5] Avoid type casting in uniqueness validator 2018-04-19 13:31:11 +11:00
active_record_data_types.rb Enable RuboCop Style/RegexpLiteral 2018-02-01 02:06:07 +09:00
active_record_locking.rb [Rails5] Update active_record_locking initializer 2018-03-18 12:19:25 +11:00
active_record_mysql_timestamp.rb Make sure MySQL would not use CURRENT_TIMESTAMP 2017-08-15 19:07:28 +08:00
active_record_preloader.rb Do not try to preload Commits when using Note.includes(:noteable) 2017-05-31 11:12:26 -05:00
active_record_schema_ignore_tables.rb Ignore temporary table in schema 2017-12-11 12:38:22 -08:00
active_record_table_definition.rb Add datetime_with_timezone to table definition 2017-06-22 09:21:23 -07:00
additional_headers_interceptor.rb
application_controller_renderer.rb [Rails5] Update files by rails app:update 2018-03-22 09:37:57 +11:00
ar5_batching.rb [Rails5] Update ar5_batching initializer 2018-03-21 09:15:42 +11:00
ar5_pg_10_support.rb [Rails5] Update ar5_pg_10_support initializer 2018-03-21 09:21:33 +11:00
ar_native_database_types.rb Address review comments. 2018-03-16 13:35:27 +01:00
ar_speed_up_migration_checking.rb Make ActiveRecord::Migrator idempotent again in test env 2017-05-29 14:09:24 +02:00
artifacts_direct_upload_support.rb Add direct_upload setting for artifacts 2018-04-05 15:01:14 +02:00
asset_sync.rb Rename asset sync related AWS variables 2018-01-01 21:50:41 +05:30
attr_encrypted_no_db_connection.rb
backtrace_silencers.rb Include the ee/ directory in backtraces 2018-03-12 10:14:52 +00:00
batch_loader.rb Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
bootstrap_form.rb Convert app/views/profiles/show.html.haml to bootstrap_form 2017-06-22 15:42:44 +01:00
bullet.rb Enable the bullet_logger setting; enable raise in test environment 2017-04-03 17:15:09 -04:00
carrierwave.rb Port LFS direct_upload from EE 2018-03-27 10:32:48 +02:00
chronic_duration.rb
connection_fix.rb
cookies_serializer.rb
date_time_formats.rb Port some non-EE-specific config/ changes to CE 2018-01-25 14:14:53 +01:00
default_url_options.rb
deprecations.rb Backport GitLab domain helper methods 2018-04-13 14:52:33 -03:00
devise.rb OmniauthInitializer created to improve devise.rb 2018-03-20 17:39:52 +00:00
devise_password_length.rb.example
disable_email_interceptor.rb
doorkeeper.rb Specify base controller for Doorkeeper 2018-02-28 12:05:19 +01:00
doorkeeper_openid_connect.rb Add groups to OpenID Connect claims 2018-02-08 13:22:41 +01:00
email_template_interceptor.rb
etag_caching.rb
fast_gettext.rb Ignore fuzzy translations 2017-08-31 14:10:04 +02:00
fix_local_cache_middleware.rb Move ModuleWithInstanceVariables to Gitlab namespace 2017-11-22 17:06:57 +08:00
flipper.rb Increase feature flag cache TTL to one hour 2018-02-19 14:28:22 +01:00
fog_google_https_private_urls.rb Merge branch '4879-support-private-https-urls-for-object-storage' into 'master' 2018-02-28 21:26:34 +01:00
forbid_sidekiq_in_transactions.rb Method to track recoverable exceptions in sentry 2018-04-17 11:39:23 +02:00
gettext_rails_i18n_patch.rb Load only the currently needed JS locale file 2017-10-04 11:23:52 +00:00
gitlab_shell_secret_token.rb
gitlab_workhorse_secret.rb
go_get.rb
gollum.rb Replacing gollum libs for custom gitlab ones 2018-04-13 13:17:52 +00:00
grape_route_helpers_fix.rb Fix grape-route-helper route shadowing 2018-01-29 15:28:14 -06:00
grpc.rb Add grpc.log for Gitaly 2017-10-03 11:28:40 +00:00
hamlit.rb Enable the Style/TrailingCommaInArguments cop 2017-05-10 18:25:45 +02:00
health_check.rb
kaminari_config.rb
lograge.rb Strip any query string parameters from Location headers from lograge 2018-03-20 16:38:36 -07:00
mime_types.rb Backport of LFS File Locking API 2018-02-07 09:04:00 -05:00
mysql_ignore_postgresql_options.rb
mysql_set_length_for_binary_indexes.rb use Module#prepend instead of alias_method_chain 2017-07-27 15:46:03 +02:00
new_framework_defaults.rb [Rails5] Update files by rails app:update 2018-03-22 09:37:57 +11:00
omniauth.rb Moved o_auth/saml/ldap modules under gitlab/auth 2018-02-28 16:53:02 +01:00
peek.rb Make Gitaly more prominent in the performance bar 2018-03-13 12:58:00 +00:00
postgresql_cte.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
postgresql_limit_fix.rb
postgresql_opclasses_support.rb Fix regular expression used for opclasses to not be confused by partial index clause 2017-09-19 11:52:14 +01:00
premailer.rb
query_limiting.rb Track and act upon the number of executed queries 2018-02-01 17:00:46 +01:00
rack_attack.rb.example
rack_attack_git_basic_auth.rb
rack_attack_global.rb Remove internal api calls from the rack::attack throttling 2018-02-15 16:54:36 +00:00
rack_attack_logging.rb
rack_lineprof.rb
relative_naming_ci_namespace.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
relative_url.rb.sample
request_context.rb Allow limiting logging in users from too many different IPs. 2017-03-06 15:41:24 +01:00
request_profiler.rb
routing_draw.rb
rspec_profiling.rb Move ModuleWithInstanceVariables to Gitlab namespace 2017-11-22 17:06:57 +08:00
secret_token.rb Upgrade doorkeeper-openid_connect 2017-09-20 17:38:33 +02:00
sentry.rb Send API parameters as extra data for sentry errors 2017-10-05 18:31:34 -03:00
server_uptime.rb 31616-add-uptime-of-gitlab-instance-in-admin-area 2017-05-29 15:46:25 -05:00
session_store.rb current_application_settings belongs on Gitlab::CurrentSettings 2017-08-31 13:38:33 +01:00
sherlock.rb
sidekiq.rb Add support for Sidekiq JSON logging 2018-04-04 05:04:00 -07:00
smtp_settings.rb.sample
static_files.rb Never connect to webpack-dev-server over SSL 2017-09-15 14:41:52 +02:00
time_zone.rb
trusted_proxies.rb Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
warden.rb Log and send a system hook if a blocked user fails to login 2018-01-14 22:22:06 -08:00
workhorse_multipart.rb Update form to properly set the path 2017-08-22 11:33:18 +02:00
wrap_parameters.rb