mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
make the ONLY env variable used in guides generation work with kindle guides
This commit is contained in:
parent
ef32b59384
commit
71dfce6e47
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ module RailsGuides
|
|||
def select_only(guides)
|
||||
prefixes = ENV['ONLY'].split(",").map(&:strip)
|
||||
guides.select do |guide|
|
||||
prefixes.any? {|p| guide.start_with?(p)}
|
||||
prefixes.any? { |p| guide.start_with?(p) || guide.start_with?("kindle") }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue