Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class Test class << self alias_method :find_with_inactive_profiles, :find def find_with_active_users_only(*args, &block) with_scope(:find => { :conditions => 'users.activated_at IS NOT NULL', :include => :user }) do find_without_active_users(*args, &block) end end alias_method_chain :find, :active_users_only end end
This paste will be private.
From the Design Piracy series on my blog: