Module: ActiveRecord::ConnectionAdapters::Quoting
- Defined in:
- lib/activerecord-time/extension.rb
Instance Method Summary collapse
Instance Method Details
#quote_with_time_of_day(value, column = nil) ⇒ Object
17 18 19 20 |
# File 'lib/activerecord-time/extension.rb', line 17 def quote_with_time_of_day(value, column = nil) return "'#{quoted_time(value)}'" if TimeOfDay === value quote_without_time_of_day(value, column) end |
#quoted_time(value) ⇒ Object
23 24 25 |
# File 'lib/activerecord-time/extension.rb', line 23 def quoted_time(value) value.to_s end |