Skip to content

Commit

Permalink
refined syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Obi-TOB authored and bricesanchez committed Aug 9, 2018
1 parent 109432d commit 46610d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/lib/refinery/pages/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def layout_template_whitelist
self.reserved_paths = %w(/rails/active_storage)
self.friendly_id_reserved_words = %w(
index new session login logout users refinery admin images
) + self.reserved_paths.map { |path| (path.split('/') - [""]).first}.flatten.uniq
) | self.reserved_paths.map { |path| path.split('/').reject(&:blank?).first}.flatten.uniq
self.layout_templates_pattern = 'app', 'views', '{layouts,refinery/layouts}', '*html*'
self.view_templates_pattern = 'app', 'views', '{pages,refinery/pages}', '*html*'
end
Expand Down

0 comments on commit 46610d8

Please sign in to comment.