Skip to content

Commit

Permalink
Merge pull request #1789 from jhawthorn/wallet_user_class_handle
Browse files Browse the repository at this point in the history
Use UserClassHandle for WalletPaymentSource
  • Loading branch information
jhawthorn authored Mar 23, 2017
2 parents 4e66f02 + c277f5a commit af3d8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/wallet_payment_source.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Spree::WalletPaymentSource < ActiveRecord::Base
belongs_to :user, class_name: Spree.user_class, foreign_key: 'user_id', inverse_of: :wallet_payment_sources
belongs_to :user, class_name: Spree::UserClassHandle.new, foreign_key: 'user_id', inverse_of: :wallet_payment_sources
belongs_to :payment_source, polymorphic: true, inverse_of: :wallet_payment_sources

validates_presence_of :user
Expand Down

0 comments on commit af3d8d9

Please sign in to comment.