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

@valid_template_whitelist is empty when using array of symbols as view_template_whitelist option #2030

Closed
wants to merge 1 commit into from

Conversation

allomov
Copy link
Contributor

@allomov allomov commented Nov 15, 2012

This article says that I can use an array containing either string or symbol as view_template_whitelist. To find out what view_templates can be found is used intersection & between Refinery::Pages.view_template_whitelist and Refinery::Pages.valid_templates('app', 'views', '{pages,refinery/pages}', '*html*'), the last one returns array of string and if you use & the result will return empty array.
Here is simple example to illustrate this:

[:simple, :array] & ['simple', 'array'] # => [] 

@parndt
Copy link
Member

parndt commented Nov 19, 2012

Looks good -- thanks!

@parndt
Copy link
Member

parndt commented Nov 19, 2012

Merged to cd8d73f

Travis was failing due to some timeout.

@parndt parndt closed this Nov 19, 2012
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.

2 participants