Module: Guts::PermissionsHelper
- Defined in:
- app/helpers/guts/permissions_helper.rb
Overview
Permissions helper
Instance Method Summary collapse
-
#clean_subject_class(item) ⇒ String
Removes Guts from the authorization string to pretty it.
Instance Method Details
#clean_subject_class(item) ⇒ String
Removes Guts from the authorization string to pretty it
7 8 9 |
# File 'app/helpers/guts/permissions_helper.rb', line 7 def clean_subject_class(item) item.gsub(/Guts::/, '').titleize end |