Check if scope applies to type before given path (#7263)

Merge pull request 7263
This commit is contained in:
Ashwin Maroli 2018-09-20 19:15:53 +05:30 committed by jekyllbot
parent 72dc3a56f3
commit 88e0472160
1 changed files with 2 additions and 2 deletions

View File

@ -93,9 +93,9 @@ module Jekyll
# path - the path to check for
# type - the type (:post, :page or :draft) to check for
#
# Returns true if the scope applies to the given path and type
# Returns true if the scope applies to the given type and path
def applies?(scope, path, type)
applies_path?(scope, path) && applies_type?(scope, type)
applies_type?(scope, type) && applies_path?(scope, path)
end
# rubocop:disable Metrics/AbcSize