1 2 3 4 5 6 7
module ProtectedBranchAccess extend ActiveSupport::Concern def humanize self.class.human_access_levels[self.access_level] end end