mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Remove Lambda exemption
This commit is contained in:
parent
93dcde2bb2
commit
b026649348
2 changed files with 1 additions and 3 deletions
|
@ -61,8 +61,6 @@ Style/FrozenStringLiteralComment:
|
|||
Enabled: false
|
||||
Style/EvalWithLocation:
|
||||
Enabled: false
|
||||
Style/Lambda:
|
||||
Enabled: false
|
||||
Style/ClassVars:
|
||||
Enabled: false
|
||||
Style/GlobalVars:
|
||||
|
|
|
@ -191,7 +191,7 @@ module Middleman
|
|||
ignored
|
||||
end,
|
||||
|
||||
layout: ->(file, app) {
|
||||
layout: lambda { |file, app|
|
||||
file[:relative_path].to_s.start_with?('layout.', app.config[:layouts_dir] + '/')
|
||||
}
|
||||
}, 'Callbacks that can exclude paths from the sitemap'
|
||||
|
|
Loading…
Reference in a new issue