Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Add restricted_handlers group list config #209

Closed
wants to merge 1 commit into from

Conversation

rnaud
Copy link

@rnaud rnaud commented Feb 2, 2017

What

No very excited about this implementation as this is not using the restrict_to current syntax. But I didn't find a way to access the config values as part of the route class methods.

This also does not work with the help list of routes as it rewrites the same authorized? method

Usage

config.robot.restricted_handlers = {
  "catgif" => [:important_people]
}

Todo

  • tests
  • documentation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants