module Activerecord::Time::Quoting

Public Instance Methods

quote(value) click to toggle source
Calls superclass method
# File lib/activerecord-time/extension.rb, line 6
def quote(value)
  return "'#{value}'" if value.is_a?(TimeOfDay)

  super
end
type_cast(value) click to toggle source
Calls superclass method
# File lib/activerecord-time/extension.rb, line 12
def type_cast(value)
  return value.to_s if value.is_a?(TimeOfDay)

  super
end