Skip to content

Commit

Permalink
fix problem with symbol array as view_template_whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
allomov authored and parndt committed Nov 19, 2012
1 parent b8a9f01 commit cd8d73f
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -91,10 +91,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

0 comments on commit cd8d73f

Please sign in to comment.