|
|
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
|