Skip to content

Commit

Permalink
Merge pull request #434 from Shopify/controller-parent-class
Browse files Browse the repository at this point in the history
subclass from ActionController::Base not Application controller
  • Loading branch information
kevinhughes27 authored Jul 19, 2017
2 parents cee9cdb + f3bcad1 commit 15a264d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Removed the `shopify_session_repository` initializer. The SessionRepository is now configured through the main ShopifyApp configuration object and the generated initializer
* Moved InMemorySessionStore into the ShopifyApp namespace
* Remove ShopifySession concern. This module made the code internal to this engine harder to follow and we want do discourage over-writing the auth code now that we have generic hooks for all extra tasks during install.
* Changed engine controllers to subclass ActionController::Base to avoid any possible conflict with the parent application

7.3.0
-----
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/shopify_app/authenticated_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ShopifyApp
class AuthenticatedController < ApplicationController
class AuthenticatedController < ActionController::Base
include ShopifyApp::Localization
include ShopifyApp::LoginProtection

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/shopify_app/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ShopifyApp
class SessionsController < ApplicationController
class SessionsController < ActionController::Base
include ShopifyApp::LoginProtection
layout false, only: :new

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/shopify_app/webhooks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ShopifyApp
class WebhooksController < ApplicationController
class WebhooksController < ActionController::Base
include ShopifyApp::WebhookVerification

class ShopifyApp::MissingWebhookJobError < StandardError; end
Expand Down

0 comments on commit 15a264d

Please sign in to comment.