lib/rails-brochure/home_content.rb in rails-brochure-0.3 vs lib/rails-brochure/home_content.rb in rails-brochure-0.4
- old
+ new
@@ -17,10 +17,10 @@
end
def self.file_names
files = Dir.glob("#{home_folder_path}**/*.{#{Mime::EXTENSION_LOOKUP.keys.join(",")}}.*")
#puts files.inspect
- files.delete_if { |f| f.end_with?(".orig") }
+ files.delete_if { |f| f.end_with?(".orig") || f.start_with?("_") }
files
end
def self.templates
HomeContent.file_names.map do |f|