Class: Arel::Visitors::ToSql

Inherits:
Object
  • Object
show all
Defined in:
lib/schedule_attributes.rb

Instance Method Summary collapse

Instance Method Details

#visit_IceCube_Occurrence(value) ⇒ Object

Allow schedule occurrences to be used directly as Time objects in ActiveRecord queries



12
13
14
# File 'lib/schedule_attributes.rb', line 12

def visit_IceCube_Occurrence(value)
  quoted(value.to_time)
end