Sha256: ddb3d893528d3acec72348053098169f802ffc367faf7e661adab5383e879956
Contents?: true
Size: 410 Bytes
Versions: 17
Compression:
Stored size: 410 Bytes
Contents
require 'shopify_app/login_protection' module ShopifyApp module Controller extend ActiveSupport::Concern include ShopifyApp::LoginProtection def fullpage_redirect_to(url) if ShopifyApp.configuration.embedded_app? render inline: %Q(<script type="text/javascript">window.top.location.href = #{url.to_json};</script>) else redirect_to url end end end end
Version data entries
17 entries across 17 versions & 1 rubygems