diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-08-20 10:52:21 +0000 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-08-20 10:52:21 +0000 |
commit | 6767326267a649a04a0f6c7634be87577a788a3d (patch) | |
tree | ba92b162d8c21fe6be0b2491e188ab4cacd191b3 /lib | |
parent | 51c19691e4c4ceb60ef28fd08c6b13549a423a39 (diff) | |
download | gitlab-ce-6767326267a649a04a0f6c7634be87577a788a3d.tar.gz |
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.rb | 7 |
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 |