Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Leitzen <pleitzen@gitlab.com>2019-08-20 13:52:21 +0300
committerThong Kuah <tkuah@gitlab.com>2019-08-20 13:52:21 +0300
commit6767326267a649a04a0f6c7634be87577a788a3d (patch)
treeba92b162d8c21fe6be0b2491e188ab4cacd191b3 /lib
parent51c19691e4c4ceb60ef28fd08c6b13549a423a39 (diff)
Use ActiveModel's type instead of virtus
The virtus project has been discontinued: https://github.com/solnic/virtus/commit/a6f896984
Diffstat (limited to 'lib')
-rw-r--r--lib/gt_one_coercion.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/gt_one_coercion.rb b/lib/gt_one_coercion.rb
deleted file mode 100644
index 99be51bc8c6..00000000000
--- a/lib/gt_one_coercion.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# frozen_string_literal: true
-
-class GtOneCoercion < Virtus::Attribute
- def coerce(value)
- [1, value.to_i].max
- end
-end