Skip to content

Conversation

@vladfaust
Copy link
Owner

Breaking changes:

  • Options now are forwarded to all resources' methods
  • Main "meta" moved from options hash to be the third argument

New features:

  • Added "json_api_meta" resource method
  • Errors rescuing

Refactored code and tests, thanks to @aJIeks, @spscream & @DNNX from https://russiandevs.slack.com

@vladfaust vladfaust force-pushed the development branch 4 times, most recently from e0bac91 to a951f97 Compare February 15, 2016 23:09
Breaking changes: - Options now are forwarded to all resources' methods - Main "meta" moved from options hash to be the third argument New features: - Added "json_api_meta" resource method - Errors rescuing Refactored code and tests, thanks to @aJIeks, @spscream & @DNNX from https://russiandevs.slack.com ✌️
vladfaust added a commit that referenced this pull request Feb 15, 2016
@vladfaust vladfaust merged commit cdc795d into master Feb 15, 2016
meta options[:meta]
end
def api_format! (resources = nil, errors = nil, meta = nil, options = {})
begin

Choose a reason for hiding this comment

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

можно begin не писать, просто rescue в конце метода добавляешь и всё:

def foo #... rescue #... end 
@vladfaust vladfaust mentioned this pull request Feb 16, 2016
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants