Sha256: c4b59f6e117f83b8959437425f0bf336e136e7b40d95d166e94b161d0955f28e

Contents?: true

Size: 372 Bytes

Versions: 10

Compression:

Stored size: 372 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.16.1.pre.sidekiq.pre.6.pre.release app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.14.1 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.14.2 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.15.0 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.16.0 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.14.4 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.14.3 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.16.1 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.15.2 app/controllers/disco_app/concerns/user_authenticated_controller.rb
disco_app-0.14.0 app/controllers/disco_app/concerns/user_authenticated_controller.rb