1
0
Fork 0
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:
Thomas Reynolds 2018-11-08 13:06:34 -08:00
parent 93dcde2bb2
commit b026649348
2 changed files with 1 additions and 3 deletions

View file

@ -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:

View file

@ -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'