Skip to content

Commit

Permalink
Fixed reference to spree_current_user in dash, and another in promo
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Jun 1, 2012
1 parent 3d739e8 commit 6efdd78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dash/app/controllers/spree/admin/analytics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def sign_up
@store = {
:first_name => '',
:last_name => '',
:email => spree_current_user.email,
:email => current_user.email,
:currency => 'USD',
:time_zone => Time.zone,
:name => Spree::Config.site_name,
Expand Down
2 changes: 1 addition & 1 deletion promo/lib/spree/promo/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.activate
Spree::BaseController.class_eval do
# Include list of visited paths in notification payload hash
def default_notification_payload
{ :user => spree_current_user, :order => current_order, :visited_paths => session[:visited_paths] }
{ :user => current_user, :order => current_order, :visited_paths => session[:visited_paths] }
end
end
end
Expand Down

0 comments on commit 6efdd78

Please sign in to comment.