-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Move SerializableResource to ActiveModelSerializers namespace #1608
Move SerializableResource to ActiveModelSerializers namespace #1608
Conversation
0ee322d
to
ee37501
Compare
@@ -38,6 +38,7 @@ def initialize(*) | |||
super | |||
@_links = {} | |||
@_include_data = true | |||
@_meta = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix related to ruby warnings. Not sure how these fixes got into this commit 😕
👍 Some questions about the Ruby warnings, and any discussion of naming while we're here. |
Should we actually care about these warnings? I think I should get rid of the warnings changes from this commit as it has nothing to do with the commit. |
@@ -35,6 +35,7 @@ Fixes: | |||
- [#1488](https://github.com/rails-api/active_model_serializers/pull/1488) Require ActiveSupport's string inflections (@nate00) | |||
|
|||
Misc: | |||
- [#1608](https://github.com/rails-api/active_model_serializers/pull/1608) Move SerializaResource to ActiveModelSerializers (@groyoh) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo, need to fix it
@groyoh If your PR introduced Ruby warnings, then yes, address them. If they're pre-existing, and relevant to what you're doing, then probably. Otherwise, you can leave them. |
cde9874
to
b72fb05
Compare
Rebased and removed the warning changes that were not related to my PR. |
a8e12f6
to
ab49a40
Compare
ab49a40
to
21cb896
Compare
Rebased again. @bf4 @NullVoxPopuli anyway you could review this and merge it before merging any other PR? Since there are a lot of files involved, there are merge conflicts quite often. |
👍 Good work! |
@serializable_resource = SerializableResource.new(@resource) | ||
end | ||
|
||
def test_deprecation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@NullVoxPopuli thanks for reviewing 🎉 |
Purpose
Moves
SerializableResource
toActiveModelSerializers
namespace based on https://github.com/groyoh/active_model_serializers/blob/master/docs/rfcs/0000-namespace.mdChanges
ActiveModel::SerializableResource
code was moved toActiveModelSerializers::SerializableResource
ActiveModel::SerializableResource
is flagged as deprecated.Related GitHub issues
#1310