gitlab-org--gitlab-foss/app/models/ci
Jan Provaznik 0665a8f730 Enable mapping to nil in enums
Enum in Rails 5 does not map nil values - IOW nil value remains nil,
even if there is a key with nil value in the enum definition.

This commit overrides the underlying Enum methods so nil value is
still mapped. This solution is far from being ideal: it uses dynamic
definition of methods which introduces more magic/confusion
into the codebase.

It would be better to get rid of the nil value in enums.
2018-06-06 20:46:54 +02:00
..
artifact_blob.rb Add port number to artifacts links to gitlab-pages, if needed 2018-03-29 14:47:51 +02:00
build.rb Fix the query to select stale live traces 2018-06-06 17:49:48 +09:00
build_metadata.rb Add explicit primary key for ci_builds_metadata table 2018-03-28 14:00:04 +02:00
build_trace_chunk.rb Move find_builds_from_stale_live_traces method to Ci::Build 2018-06-06 17:49:48 +09:00
build_trace_section.rb Add CI build trace sections extractor 2017-10-05 15:42:25 +02:00
build_trace_section_name.rb Add CI build trace sections extractor 2017-10-05 15:42:25 +02:00
group.rb DRY creating groups of common builds in a stage 2018-05-23 10:37:01 +02:00
group_variable.rb [Rails5] Fix undefined method 'arel_table' for Ci::Group:Class error 2018-04-12 13:36:31 +11:00
job_artifact.rb Fix file_store for artifacts and lfs when saving 2018-05-01 22:27:54 +02:00
legacy_stage.rb DRY creating groups of common builds in a stage 2018-05-23 10:37:01 +02:00
pipeline.rb Enable mapping to nil in enums 2018-06-06 20:46:54 +02:00
pipeline_schedule.rb Remove soft removals related code 2018-01-08 17:04:45 +01:00
pipeline_schedule_variable.rb Make Variable key not secret 2018-03-22 12:08:16 +01:00
pipeline_variable.rb Alias value to secret_value in Ci::PipelineVariable 2018-04-18 17:32:33 +02:00
runner.rb Do not validate cached data 2018-06-05 10:28:22 +02:00
runner_namespace.rb Add uniqueness for RunnerNamespace 2018-05-31 10:56:41 +02:00
runner_project.rb Add Ci::Runner inverse_of's 2018-05-31 10:56:41 +02:00
stage.rb Raise error if pipeline / stage hits unknown status 2018-06-04 11:29:39 +02:00
trigger.rb Remove soft removals related code 2018-01-08 17:04:45 +01:00
trigger_request.rb move lib/ci/model.rb into lib/gitlab/ci/model.rb 2017-09-12 22:32:01 +03:00
variable.rb Make Variable key not secret 2018-03-22 12:08:16 +01:00