Module: Guts::PermissionsHelper

Defined in:
app/helpers/guts/permissions_helper.rb

Overview

Permissions helper

Instance Method Summary collapse

Instance Method Details

#clean_subject_class(item) ⇒ String

Removes Guts from the authorization string to pretty it

Parameters:

  • item (String)

    the item to clean

Returns:

  • (String)

    the cleaned string



7
8
9
# File 'app/helpers/guts/permissions_helper.rb', line 7

def clean_subject_class(item)
  item.gsub(/Guts::/, '').titleize
end