I have following statement in controller:
Sale.find(:all,:conditions => [“users.team_id IN (?)”,
Team.teams_ids(id)], :include => [:user], :group => “sales.stage_id”)
… but when looking to log the ‘group by’ is not generated in SQL
‘select’ statement so no grouping occures in resultset. Are there any
special conditions for using ‘:group’ in find statement?