2008-04-23から1日間の記事一覧
module ActiveRecordHelper def each(opts={}) rows = find(:all, opts) while rows.any? rows.each{|v| yield v} conditions = if opts.key? :conditions _conditions = opts[:conditions].clone _conditions.first.insert(0, 'id > ? and ') _conditions.i…