On Jan 31, 4:12 am, Pat Allan <[email protected]> wrote:
> No other ORMs supported at the moment. DataMapper support has been
> requested, but I've not had the time to implement it just yet (maybe
> in the next few months).
>
> So, let's work with what we *need* to, for the moment.
For the MySQL adapter:
http://github.com/morten/thinking-sphinx/commit/db691118dd661dde35bafce7f5679a6e2b27063a
I don't have access to Postgres, but if I had to take a guess, perhaps
something along the lines of:
def time_difference(diff)
if ::ActiveRecord::Base.default_timezone == :utc
"current_timestamp at time zone 'UTC' - interval '#{diff}
seconds'"
else
"current_timestamp - interval '#{diff} seconds'"
end
end
Morten
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---