Sha256: a4e080583369d31126635da2004c565fe18f184a8be7c16a3c0345279a967c89

Contents?: true

Size: 302 Bytes

Versions: 4

Compression:

Stored size: 302 Bytes

Contents

module Guts
  # Permissions helper
  module PermissionsHelper
    # Removes Guts from the authorization string to pretty it
    # @param [String] item the item to clean
    # @return [String] the cleaned string
    def clean_subject_class(item)
      item.gsub(/Guts::/, '').titleize
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guts-2.1.0 app/helpers/guts/permissions_helper.rb
guts-2.0.2 app/helpers/guts/permissions_helper.rb
guts-2.0.1 app/helpers/guts/permissions_helper.rb
guts-2.0.0 app/helpers/guts/permissions_helper.rb