Sha256: 4328952db167830131b7cf05f3b24edd4d871f05047643babf0e1b288127b7b9

Contents?: true

Size: 287 Bytes

Versions: 41

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

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

    def ibrain_current_user
      current_user
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
its-ruby-auth-0.0.1 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.20 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.19 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.18 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.17 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.16 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.15 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.14 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.13 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.12 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.11 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.10 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.9 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.8 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.7 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.6 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.5 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.4 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.3 lib/ibrain/authentication_helpers.rb
ibrain-auth-0.3.2 lib/ibrain/authentication_helpers.rb