Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
def List.cached_recently_updated(category, conditions, sort_column, sort_direction, limit, offset) get_cache('recently_updated:' + category.to_s + conditions.to_s + sort_column.to_s + sort_direction.to_s + limit.to_s + offset.to_s) do recently_updated(category, conditions, sort_column, sort_direction, limit, offset) end end
From the Design Piracy series on my blog: