Module: MotionPrime::HasAuthorization

Included in:
BaseAppDelegate, Model, Screen, Section
Defined in:
motion-prime/helpers/has_authorization.rb

Instance Method Summary collapse

Instance Method Details

#api_clientObject



12
13
14
# File 'motion-prime/helpers/has_authorization.rb', line 12

def api_client
  App.delegate.api_client
end

#current_userObject



3
4
5
# File 'motion-prime/helpers/has_authorization.rb', line 3

def current_user
  App.delegate.current_user
end

#reset_current_userObject



6
7
8
# File 'motion-prime/helpers/has_authorization.rb', line 6

def reset_current_user
  App.delegate.reset_current_user
end

#user_signed_in?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'motion-prime/helpers/has_authorization.rb', line 9

def user_signed_in?
  current_user.present?
end