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

Add several sanity checks to where we are processing method calls #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rintaun
Copy link

@rintaun rintaun commented Jul 29, 2018

Fixes #12.

All checks run by default and can be overridden by user configuration:

  • enable-outside-sinatra-base: Allow processing to happen even outside of namespaces descending from Sinatra::Base
  • enable-unknown-namespaces: Allow processing with namespaced method calls (e.g. SomeClass.get), even when those cannot be confirmed to descend from Sinatra::Base
  • enable-instance-methods: Allow processing of calls made from within instance methods.
  • enable-all: Do not limit processing at all

All checks run by default and can be overridden by user configuration:
* `enable-outside-sinatra-base`: Allow processing to happen even outside
  of namespaces descending from Sinatra::Base
* `enable-unknown-namespaces`: Allow processing with namespaced method
  calls (e.g. SomeClass.get), even when those cannot be confirmed to
  descend from Sinatra::Base
* `enable-instance-methods`: Allow processing of calls made from
   within instance methods.
* `enable-all`: Do not limit processing at all
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.

None yet

1 participant