module Activerecord::Time::Quoting

Public Instance Methods

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

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

  super(value)
end