mail_alias_role.rb
303 Bytes
class DsAdmin::Model::MailAliasRole
include DsAdmin::Model
attr_accessor :mail, :maildrop, :user
def initialize(args = {})
return if args.empty?
super(args)
@mail = args[:mail]
@maildrop = args[:maildrop]
@user = args[:user]
end
def site
@mail.sub(/.*@/, '')
end
end