Paul Bowsher
unread,Feb 12, 2009, 7:24:25 AM2/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ambition.rb
Hi,
I'd like to do the following:
.sort_by { |mirror| (mirror.connections_used -
mirror.connection_limit) }
which should generate "ORDER BY connections_used - connection_limit"
When I try the sort_by above, I get:
RuntimeError: [:connections_used, [:array, [:call,
[:dvar, :mirror], :connection_limit]]]
Does anyone know how to make this work?
Regards,