5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 06:46:21 +00:00
panel/app/models/metadata_number.rb
2020-03-24 19:11:30 -03:00

15 lines
197 B
Ruby

# frozen_string_literal: true
# Un campo numérico
class MetadataNumber < MetadataTemplate
# Nada
def default_value
nil
end
def save
self[:value] = value.to_i
true
end
end