class Koudoku::ViewsGenerator
Public Instance Methods
install()
click to toggle source
# File lib/generators/koudoku/views_generator.rb, line 19 def install # all entries in app/views/koudoku/subscriptions without . and .. # ==> all FILES in the directory files_to_copy = Dir.entries("#{Koudoku::Engine.root}/app/views/koudoku/subscriptions") - %w[. ..] files_to_copy.each do |file| copy_file file, "app/views/koudoku/subscriptions/#{file}" end end