Skip to content

Adding default options to as_json method #1

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

Merged
merged 2 commits into from
Feb 28, 2014

Conversation

bluetwin
Copy link

the JsonApiClient::ResultSet was throwing an exception ArgumentError when calling the as_json

@result = MyApp::Client::SomeClass.where(:type => 'this', :name => 'something').all
render :json => {:my_results => @result}

updated as_json with options defaults.

chingor13 added a commit that referenced this pull request Feb 28, 2014
Adding default options to as_json method
@chingor13 chingor13 merged commit 06500de into JsonApiClient:master Feb 28, 2014
JamesGlover pushed a commit to JamesGlover/json_api_client that referenced this pull request Apr 16, 2020
lannon pushed a commit to lannon/json_api_client that referenced this pull request Oct 15, 2021
Add extra error classes to handle server errors.
raldred pushed a commit to residently/json_api_client that referenced this pull request May 3, 2023
Remove some key_formatter stuff cos we don't use it and it's slow as a dog
raldred pushed a commit to residently/json_api_client that referenced this pull request May 3, 2023
This reverts commit a8f32fb, reversing
changes made to 526cdee.
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.

2 participants