class Tellimus::ViewsGenerator

Public Instance Methods

install() click to toggle source
# File lib/generators/tellimus/views_generator.rb, line 19
def install

  # all entries in app/views/tellimus/subscriptions without . and ..
  # ==> all FILES in the directory
  files_to_copy = Dir.entries("#{Tellimus::Engine.root}/app/views/tellimus/subscriptions") - %w[. ..]
  files_to_copy.each do |file|
    copy_file file, "app/views/tellimus/subscriptions/#{file}"
  end

end