Class: TradoStripeModule::Generators::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TradoStripeModule::Generators::ViewsGenerator
- Defined in:
- lib/generators/trado_stripe_module/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_views ⇒ Object
6 7 8 9 10 |
# File 'lib/generators/trado_stripe_module/views_generator.rb', line 6 def copy_views copy_file 'carts/_stripe_credit_card_form.html.erb', "app/views/themes/#{Store.settings.theme.name}/carts/_stripe_credit_card_form.html.erb" copy_file 'orders/_credit_card_data.html.erb', "app/views/themes/#{Store.settings.theme.name}/orders/_credit_card_data.html.erb" puts "Copied to your #{Store.settings.theme.name} theme!" end |