spree-account-recurring icon indicating copy to clipboard operation
spree-account-recurring copied to clipboard

How to eliminate uninitialized constant Spree::User (NameError)

Open hardreggaecafe opened this issue 5 years ago • 0 comments

I got this error 'uninitialized constant Spree::User (NameError)'. When I install the gem like this

$ bundle exec rails g spree_account_recurring:install

Result is like this.

1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
/Users/takamizawanoriaki/vegewel/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:60:in `block in load_missing_constant': uninitialized constant Spree::User (NameError)

I understand the reason because this gem use Spree::User but I use custom User. So how to switch User model to mine?

Thanks in advance.

hardreggaecafe avatar Nov 21 '19 09:11 hardreggaecafe