-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move controller decorators into
Spree::Auth
namespace (#565)
This way we're avoiding any conflicts from developer apps using `Spree::SomeControllerDecorator`
- Loading branch information
1 parent
0a45ca0
commit 6623f53
Showing
6 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
lib/controllers/backend/spree/admin/resource_controller_decorator.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
lib/controllers/backend/spree/auth/admin/resource_controller_decorator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Spree::Auth::Admin::ResourceControllerDecorator | ||
def self.prepended(base) | ||
base.rescue_from CanCan::AccessDenied, with: :unauthorized | ||
end | ||
end | ||
Spree::Admin::ResourceController.prepend(Spree::Auth::Admin::ResourceControllerDecorator) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters