Sha256: d5a346e3ec4a875a57a1814d964633dfd223cae0c221bfb365e937401ba47841

Contents?: true

Size: 285 Bytes

Versions: 10

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

module Motor
  module CurrentUserMethod
    def current_user
      if defined?(current_admin)
        current_admin
      elsif defined?(current_admin_user)
        current_admin_user
      elsif defined?(super)
        super
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
motor-admin-0.1.57 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.56 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.55 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.54 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.53 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.52 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.51 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.50 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.49 app/controllers/concerns/motor/current_user_method.rb
motor-admin-0.1.48 app/controllers/concerns/motor/current_user_method.rb