Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Modification to actionpolicy.rb #1

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

Modification to actionpolicy.rb #1

wants to merge 2 commits into from

Conversation

eshamow
Copy link
Contributor

@eshamow eshamow commented Feb 3, 2011

As per my discussion with R.I. in IRC a few days back -- this is a modification to actionpolicy.rb to enable setting a more complex default policy file.

eshamow and others added 2 commits February 3, 2011 14:44
This works based on two (optional) config file settings:

actionpolicy.enable_default
actionpolicy.default_name

If the former is set to 1, actionpolicy.rb will first look for a <pluginname>.policy as per
the original actionpolicy.rb.  If this lookup fails it will next look for the following:

If there is no actionpolicy.default_name setting in the config file, we look for a file
named default.policy

If there is a default_name setting, we look for <default_name>.policy

In either case we then substitute this for <pluginname>.policy and process.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant