Class: Munificent::Admin::UserPresenter

Inherits:
ApplicationPresenter show all
Defined in:
app/presenters/munificent/admin/user_presenter.rb

Instance Attribute Summary

Attributes inherited from ApplicationPresenter

#record

Instance Method Summary collapse

Methods inherited from ApplicationPresenter

delegate, #initialize, #name, present, presenter_class_for

Constructor Details

This class inherits a constructor from Munificent::Admin::ApplicationPresenter

Instance Method Details

#permissionsObject



15
16
17
# File 'app/presenters/munificent/admin/user_presenter.rb', line 15

def permissions
  record.permissions.to_sentence.capitalize
end

#statesObject



19
20
21
# File 'app/presenters/munificent/admin/user_presenter.rb', line 19

def states
  record.states.to_sentence.capitalize
end