We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey! I have model SalesPerson
class SalesPerson < ApplicationRecord include IdentityCache include Discard::Model validates :referral_code, uniqueness: true, presence: true validates :name, presence: true default_scope -> { kept } end
which is working with discard gem. Every time i try to generate erd file i see following error
Running via Spring preloader in process 76935 Loading application environment... Loading code in search of Active Record models... rake aborted! Loading models failed! Error occurred while loading application: uninitialized constant SalesPerson::Discard (NameError) app/models/sales_person.rb:3:in `<class:SalesPerson>' app/models/sales_person.rb:1:in `<main>' <internal:/Users/alec/.rbenv/versions/3.0.2/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require' <internal:/Users/alec/.rbenv/versions/3.0.2/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require' -e:1:in `<main>' Caused by: NameError: uninitialized constant SalesPerson::Discard
How to fix it?
The text was updated successfully, but these errors were encountered:
are you sure its related to rails-erd ? does not appear like so ...
rails-erd
Sorry, something went wrong.
No branches or pull requests
Hey!
I have model SalesPerson
which is working with discard gem. Every time i try to generate erd file i see following error
How to fix it?
The text was updated successfully, but these errors were encountered: