class Unpoly::Rails::Change::Field::Boolean

Public Instance Methods

parse(raw) click to toggle source
# File lib/unpoly/rails/change/field.rb, line 48
def parse(raw)
  raw == 'true'
end
stringify(value) click to toggle source
# File lib/unpoly/rails/change/field.rb, line 52
def stringify(value)
  value.to_json
end