You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an application_record.cr and extending it Granite::Base it works.
When i create an model user.cr and extend from application_record.cr it will raise an compiler error saying that @@Validators are already defined.
classApplicationRecord < Granite::Base
adapter pg
end
The easiest way to accomplish what you're trying to do is with a module which you import into your models. I do this and it works reasonably well. I'm not sure it'll work with the adapter macro though.
When creating an application_record.cr and extending it Granite::Base it works.
When i create an model user.cr and extend from application_record.cr it will raise an compiler error saying that @@Validators are already defined.
The text was updated successfully, but these errors were encountered: