Skip to content
New issue

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

Invitaiton_sent , invitation_accepted_at, invitation_created_at disappeared from model #824

Open
albertsaave opened this issue May 27, 2020 · 3 comments

Comments

@albertsaave
Copy link

Hi,

I noticed that the invitation_** attributes are no longer in the model, but still reachable during active record queries.

Lead.pluck(:invitation_accepted_at)
rb(main):003:0> Lead.pluck(:invitation_accepted_at)
   (106.7ms)  SELECT "leads"."invitation_accepted_at" FROM "leads"
=> [Tue, 20 Aug 2019 15:44:32 UTC +00:00, Sun, 17 Mar 2019 03:04:30 UTC +00:00, nil, Fri, 22 Mar 2019 00:56:36 UTC +00:00, Thu, 07 Mar 2019 21:13:03 UTC +00:00, Tue, 12 Mar 2019 23:26:31 UTC +00:00, nil, nil, Sat, 23 Mar 2019 01:59:45 UTC +00:00, nil, nil, Thu, 23 May 2019 16:36:48 UTC +00:00, nil, nil, nil, Sun, 17 Feb 2019 22:56:50 UTC +00:00, nil, nil, nil, nil, nil, nil, nil, nil, Sun, 06 Jan 2019 00:20:13 UTC +00:00, nil, nil, nil, nil, nil, nil, Tue, 16 Apr 2019 15:02:31 UTC +00:00, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil]

but doing Lead.last does not return the attributes.

Has anyone experience any of this?

This is on ruby 2.6.3, devise (4.4.3), and devise_invitable (1.7.5).

Thanks,

@scambra
Copy link
Owner

scambra commented May 27, 2020

I think devise hides some attributes

@joshbeckman
Copy link

These are hidden attributes, according to Devise patterns: #735

@scambra
Copy link
Owner

scambra commented Jun 4, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants