Class: StripeSaas::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- StripeSaas::ViewsGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/stripe_saas/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
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 |