-
Notifications
You must be signed in to change notification settings - Fork 36
Key transform #32
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
Key transform #32
Conversation
super(key_transform.call(name), options, &block) | ||
end | ||
|
||
def has_many(name, options = {}, &block) |
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.
Rename has_many to many?.
super(key_transform.call(name), options, &block) | ||
end | ||
|
||
def has_one(name, options = {}, &block) |
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.
Rename has_one to one?.
end | ||
end | ||
|
||
module ClassMethods |
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.
Missing top-level module documentation comment.
@@ -0,0 +1,37 @@ | |||
module JSONAPI | |||
module Serializable | |||
module KeyTransform |
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.
Missing top-level module documentation comment.
@@ -0,0 +1,37 @@ | |||
module JSONAPI |
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.
Missing frozen string literal comment.
end | ||
end | ||
|
||
module InstanceMethods |
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.
Missing top-level module documentation comment.
end | ||
end | ||
|
||
module ClassMethods |
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.
Missing top-level module documentation comment.
@@ -0,0 +1,60 @@ | |||
module JSONAPI | |||
module Serializable | |||
module ConditionalFields |
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.
Missing top-level module documentation comment.
@@ -0,0 +1,60 @@ | |||
module JSONAPI |
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.
Missing frozen string literal comment.
29c849e
to
5a9e068
Compare
Closing in favor of #37. |
No description provided.