diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-04 17:55:24 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-04 17:56:08 +0530 |
commit | 71dfce6e4701ae3c113c2b8f19c05f9667b88b78 (patch) | |
tree | 1d284ebc9f2fe1ffe2186f80efbf3773a0ba2176 /railties/guides/rails_guides | |
parent | ef32b5938442a87e9d3addc53448a6949f23f349 (diff) | |
download | rails-71dfce6e4701ae3c113c2b8f19c05f9667b88b78.tar.gz rails-71dfce6e4701ae3c113c2b8f19c05f9667b88b78.tar.bz2 rails-71dfce6e4701ae3c113c2b8f19c05f9667b88b78.zip |
make the ONLY env variable used in guides generation work with kindle guides
Diffstat (limited to 'railties/guides/rails_guides')
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index 49ad8f7769..d6a98f9ac4 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -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 |