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
|
Enabled: false
|
||||||
Style/EvalWithLocation:
|
Style/EvalWithLocation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/Lambda:
|
|
||||||
Enabled: false
|
|
||||||
Style/ClassVars:
|
Style/ClassVars:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/GlobalVars:
|
Style/GlobalVars:
|
||||||
|
|
|
@ -191,7 +191,7 @@ module Middleman
|
||||||
ignored
|
ignored
|
||||||
end,
|
end,
|
||||||
|
|
||||||
layout: ->(file, app) {
|
layout: lambda { |file, app|
|
||||||
file[:relative_path].to_s.start_with?('layout.', app.config[:layouts_dir] + '/')
|
file[:relative_path].to_s.start_with?('layout.', app.config[:layouts_dir] + '/')
|
||||||
}
|
}
|
||||||
}, 'Callbacks that can exclude paths from the sitemap'
|
}, 'Callbacks that can exclude paths from the sitemap'
|
||||||
|
|
Loading…
Reference in a new issue