Class: Koudoku::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Koudoku::ViewsGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/koudoku/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# 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 |