Skip to content

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

Open
@hardreggaecafe

Description

@hardreggaecafe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions