You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have Occurrences work transparently as Time objects. Need to investigate further... Can we override #class without making bad stuff happen?
Adding this workaround in a rails initializer makes it work for now:
class Arel::Visitors::ToSql
def visit_IceCube_Occurrence(value)
quoted(value.to_time)
end
end
The text was updated successfully, but these errors were encountered:
Changing to use the IceCube::Occurrence class as a wrapper for times means having to map them back to times when using with ActiveRecord & Arel:
It would be nice to have Occurrences work transparently as Time objects. Need to investigate further... Can we override
#class
without making bad stuff happen?Adding this workaround in a rails initializer makes it work for now:
The text was updated successfully, but these errors were encountered: