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