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

Version Path
shopify_app-6.4.2 lib/shopify_app/controller.rb
shopify_app-6.4.1 lib/shopify_app/controller.rb
shopify_app-6.4.0 lib/shopify_app/controller.rb
shopify_app-6.3.0 lib/shopify_app/controller.rb
shopify_app-6.2.1 lib/shopify_app/controller.rb
shopify_app-6.2.0 lib/shopify_app/controller.rb
shopify_app-6.1.3 lib/shopify_app/controller.rb
shopify_app-6.1.2 lib/shopify_app/controller.rb
shopify_app-6.1.1 lib/shopify_app/controller.rb
shopify_app-6.1.0 lib/shopify_app/controller.rb
shopify_app-6.0.6 lib/shopify_app/controller.rb
shopify_app-6.0.5 lib/shopify_app/controller.rb
shopify_app-6.0.4 lib/shopify_app/controller.rb
shopify_app-6.0.3 lib/shopify_app/controller.rb
shopify_app-6.0.2 lib/shopify_app/controller.rb
shopify_app-6.0.1 lib/shopify_app/controller.rb
shopify_app-6.0.0 lib/shopify_app/controller.rb