Simplify code
This commit is contained in:
parent
864bb38d8a
commit
55419b92a8
4 changed files with 4 additions and 4 deletions
|
@ -12,6 +12,6 @@ class Champs::DecimalNumberChamp < Champ
|
|||
private
|
||||
|
||||
def processed_value
|
||||
value.present? ? value.to_f : nil
|
||||
value&.to_f
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue