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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ActiveModel::Attributes ??? #31848

Closed

Conversation

composerinteralia
Copy link
Member

@composerinteralia composerinteralia commented Feb 1, 2018

I suspect I have missed something here, but #31832
got me poking around in ActiveModel::Attributes, and
I couldn't see where it was being used, except in
a couple tests.

If I am correct that this undocumented (i.e. not public)
class is not being used anywhere in Rails, we should either
remove it, or document it so people can use it. It does have
some duplication with ActiveRecord::Attributes, so maybe
we could clean that up as well.

If I am NOT correct about any of this, I will be happy to learn what I got wrong. 馃樃

If this becomes mergeable, I would want to go through and make sure I am not negatively affecting test coverage. I removed those for now just to see if the build would pass. (Things were passing locally, but Travis runs a lot more test than I do!)

I suspect I have missed something here, but rails#31832
got me poking around in `ActiveModel::Attributes`, and
I couldn't see where it was being used, except in
a couple tests.

If I am correct that this undocumented
class is not being used anywhere in Rails, we should either
remove it, or document it so people can use it. It does have
some duplication with ActiveRecord::Attributes, so maybe
we could clean that up as well.

If I am NOT correct about any of this, I will be happy to learn why!
@rafaelfranca
Copy link
Member

Thank you for the pull request. If you do some research about when this feature was added you can see that the idea is to make it public API. It is still not public, but it will be when we want it to be.

@composerinteralia
Copy link
Member Author

composerinteralia commented Feb 1, 2018

Got it. I can see that now in 7e9ded5. I will get in the habit of checking the history before I make a PR like this. Sorry about that.

@composerinteralia composerinteralia deleted the remove-attributes branch February 7, 2018 13:25
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

Successfully merging this pull request may close these issues.

None yet

2 participants