Sha256: 5e273619726647509970e0057c7807fb0497a83a3b598d23834a023f9a4a2e6c

Contents?: true

Size: 376 Bytes

Versions: 10

Compression:

Stored size: 376 Bytes

Contents

module DiscoApp::Concerns::UserAuthenticatedController
  extend ActiveSupport::Concern
  include ShopifyApp::LoginProtection

  included do
    before_action :shopify_user
  end

  private

    def shopify_user
      @user = DiscoApp::User.find(session[:shopify_user])
      rescue ActiveRecord::RecordNotFound
        redirect_to disco_app.new_user_session_path
    end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
disco_app-0.13.0 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.1 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.2 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.3 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.4 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.5 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.6 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.7 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.8 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.13.6.pre.puma.pre.3 app/controllers/disco_app/concerns/user_authenticated_controller.rb