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