Class: StaticErrorPages::CopyGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- StaticErrorPages::CopyGenerator
- Defined in:
- lib/generators/static_error_pages/copy_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_views ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/static_error_pages/copy_generator.rb', line 8 def copy_views files = Dir["#{StaticErrorPages::Railtie.root.join('app/views')}/**/*.slim"] files.each do |file| copy_file(file, "app/views/error_pages/#{File.basename(file)}") end end |