Class: StripeSaas::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/stripe_saas/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#installObject



12
13
14
15
16
17
# File 'lib/generators/stripe_saas/views_generator.rb', line 12

def install
  files_to_copy = Dir.entries("#{StripeSaas::Engine.root}/app/views/stripe_saas/subscriptions") - %w[. ..]
  files_to_copy.each do |file|
    copy_file file, "app/views/stripe_saas/subscriptions/#{file}"
  end
end