Module: Ibrain::AuthenticationHelpers

Defined in:
lib/ibrain/authentication_helpers.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



5
6
7
# File 'lib/ibrain/authentication_helpers.rb', line 5

def self.included(receiver)
  receiver.send(:helper_method, :ibrain_current_user) if receiver.send(:respond_to?, :helper_method)
end

Instance Method Details

#ibrain_current_userObject



9
10
11
# File 'lib/ibrain/authentication_helpers.rb', line 9

def ibrain_current_user
  current_user
end