blob: b3f6ca7691d6b563483763ab165efaa4a8045000 (
plain) (
tree)
|
|
module ActiveRecord
module Type
class String < Value # :nodoc:
def type
:string
end
def text?
true
end
def klass
::String
end
private
def cast_value(value)
case value
when true then "1"
when false then "0"
else value.to_s
end
end
end
end
end
|