This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
c630bced67
gitlab-org--gitlab-foss
/
lib
/
gt_one_coercion.rb
6 lines
94 B
Ruby
Raw
Blame
History
class
GtOneCoercion
<
Virtus
::
Attribute
def
coerce
(
value
)
[
1
,
value
.
to_i
]
.
max
end
end
View Git Blame
Copy Permalink