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

Attrs as instance vars #39

Merged
merged 5 commits into from
Jul 26, 2022
Merged

Attrs as instance vars #39

merged 5 commits into from
Jul 26, 2022

Conversation

santib
Copy link
Owner

@santib santib commented Jul 20, 2022

No description provided.

@@ -49,7 +49,7 @@ def self.name
end

context "with options" do
let(:options) { { except: :first_name } }
let(:options) { { except: "first_name" } }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, why these changes happened?

Shouldn't the options be passed as symbols?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question, we probably need to support symbols as well, I'll check

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just checked, this is the as_json Rails method, so I think it's fine

@santib santib requested a review from sebaherrera07 July 25, 2022 15:39
@santib santib requested review from martinjaimem and sebaherrera07 and removed request for sebaherrera07 July 26, 2022 15:35
@santib santib merged commit d57719c into main Jul 26, 2022
@santib santib deleted the attrs-as-instance-vars branch July 26, 2022 17:53
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.

3 participants