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

Handle authorization when querying for a specific resource #503

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Handle authorization when querying for a specific resource #503

wants to merge 8 commits into from

Conversation

nozik
Copy link
Contributor

@nozik nozik commented Nov 15, 2016

If params[:resource] is present, @doc[:docs][:resources] is an array and not a hash (because of the logic in application.rb#to_json) - which causes a crash. Wasn't reproducible in ruby 2.3.0, but happens in ruby 2.3.1 (see ruby 2.3.1 release notes, http://svn.ruby-lang.org/repos/ruby/tags/v2_3_1/ChangeLog: 'can assign an attribute which is nil')

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.

1 participant