Permalink
Browse files

make the ONLY env variable used in guides generation work with kindle…

… guides
  • Loading branch information...
1 parent ef32b59 commit 71dfce6e4701ae3c113c2b8f19c05f9667b88b78 @vijaydev vijaydev committed Feb 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/rails_guides/generator.rb
@@ -167,7 +167,7 @@ def guides_to_generate
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

0 comments on commit 71dfce6

Please sign in to comment.