7 lines
164 B
Ruby
7 lines
164 B
Ruby
class Champs::IntegerNumberChamp < Champ
|
|
validates :value, numericality: { only_integer: true, allow_nil: true }
|
|
|
|
def value_for_export
|
|
value.to_i
|
|
end
|
|
end
|