def self.find_for(options = {})
scope = scoped
scope = scope.where(:hook => options[:hook].to_s) if options[:hook]
...
Ruby ActiveRecord query construc...
by https://www.google.com/accounts/o8/id?id=AItOawmLF7gR3CIpZoZXbwO7fiD2QWYltD3lwpM,
December 23, 2010 15:27,
1 refactoring, tagged with rails, sql, activerecord, rails3, arel
class Topic < ActiveRecord::Base # Finds most active users in the topic ...
Ruby most active users through r...
There are topics, each topi...
Rails 3.0.3
This method ...