module AccessLevelsHelper

  def visibility_icon(al)
    if al.hidden
      '<i class="glyphicon glyphicon-eye-open visibility"></i> Show'
    else
      '<i class="glyphicon glyphicon-eye-close visibility"></i> Hide'
    end
  end

  def translate(permit)
    translations = {
        enrolled: 'FK-members'
    }
    translations[permit.to_sym] || permit
  end

end

module AccessLevelsHelper

  def visibility_icon(al)
    if al.hidden
      '<i class="glyphicon glyphicon-eye-open visibility"></i> Show'
    else
      '<i class="glyphicon glyphicon-eye-close visibility"></i> Hide'
    end
  end

  def translate(permit, options = {})
    translations = {
        enrolled: 'FK-members'
    }
    translations[permit.to_sym] || permit
  end

end

Add option hash to translate
Add option hash to translate
