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

Fix incorrect s/options = {}/options ||= {} #1049

Merged

Conversation

bf4
Copy link
Member

@bf4 bf4 commented Aug 11, 2015

Introduced in #965, surfaced in #1041

(Thanks @bacarini for finding this!)

@bf4 bf4 mentioned this pull request Aug 11, 2015
@bacarini
Copy link
Contributor

@bf4 what is the difference between both examples below? Why not put options = {} as method parameters?

def serializable_hash(options = nil)
   options ||= {}
def serializable_hash(options = {})

@bf4
Copy link
Member Author

bf4 commented Aug 11, 2015

See referenced PR #965

@joaomdmoura
Copy link
Member

Good catch folks!

joaomdmoura added a commit that referenced this pull request Aug 12, 2015
Fix incorrect s/options = {}/options ||= {}
@joaomdmoura joaomdmoura merged commit b4949fb into rails-api:master Aug 12, 2015
@bf4 bf4 deleted the fix_json_api_adapter_serialable_hash branch August 12, 2015 14:12
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