mail_alias_role.rb 270 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 require 'SystemData' class MailAliasRole < SystemData attr_accessor :mail, :maildrop, :user def initialize(args = {}) super(args) @mail = args[:mail] @maildrop = args[:maildrop] @user = args[:user] end def site @mail.sub(/.*@/, '') end end