Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class Preference < Presenter def_delegators :user, :first_name, :last_name, :password, :password_confirmation, :email, :login, :first_name=, :last_name=, :password=, :password_confirmation=, :email=, :login= def_delegators :account, :name, :domain, :notification_email, :name, :forward_all :name=, :domain=, :notification_email=, :name=, :forward_all attr_accessor :user, :account def update(params) params.each { |key,value| send("#{key}=", value) } detect_and_combine_errors(user,other_inbox) if errors.empty? return user.save && other_inbox.save else return false end end end
This paste will be private.
From the Design Piracy series on my blog: