Permalink
Browse files

Removes unnecessary Base.site calls in login protection

  • Loading branch information...
David Underwood
David Underwood committed May 14, 2012
1 parent b9dd1af commit 82e3a897fdf58e98f407f55e47cac891a90fb5f5
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/shopify_app/login_protection.rb
@@ -3,11 +3,9 @@ def shopify_session
if session[:shopify]
begin
# session[:shopify] set in LoginController#finalize
- ShopifyAPI::Base.site = session[:shopify].site
ShopifyAPI::Base.activate_session(session[:shopify])
yield
ensure
- ShopifyAPI::Base.site = nil
ShopifyAPI::Base.clear_session
end
else

0 comments on commit 82e3a89

Please sign in to comment.