class Unpoly::Rails::Change::Field::Time

Public Instance Methods

parse(raw) click to toggle source
# File lib/unpoly/rails/change/field.rb, line 60
def parse(raw)
  if raw.present?
    ::Time.at(raw.to_i)
  end
  end
stringify(value) click to toggle source
# File lib/unpoly/rails/change/field.rb, line 66
def stringify(value)
  if value
    value.to_i
  end
end