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
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/app/controllers/refinery/admin/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def globalize!
end

def load_valid_templates
@valid_layout_templates = Refinery::Pages.layout_template_whitelist &
@valid_layout_templates = Refinery::Pages.layout_template_whitelist.map(&:to_s) &
Refinery::Pages.valid_templates('app', 'views', '{layouts,refinery/layouts}', '*html*')

@valid_view_templates = Refinery::Pages.view_template_whitelist &
@valid_view_templates = Refinery::Pages.view_template_whitelist.map(&:to_s) &
Refinery::Pages.valid_templates('app', 'views', '{pages,refinery/pages}', '*html*')
end

Expand Down