Skip to content

Commit

Permalink
Remove has_many orders
Browse files Browse the repository at this point in the history
This is already added by UserMethods
  • Loading branch information
John Hawthorn authored and acreilly committed Jan 4, 2019
1 parent 18bdb2e commit f7f72bb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/spree/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class User < Spree::Base
after_destroy :scramble_email_and_password
before_update { generate_spree_api_key if encrypted_password_changed? && spree_api_key.present? }

has_many :orders

before_validation :set_login

users_table_name = User.table_name
Expand Down

0 comments on commit f7f72bb

Please sign in to comment.