Class: Pageflow::Generators::ErrorPagesGenerator Private
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pageflow::Generators::ErrorPagesGenerator
- Defined in:
- lib/generators/pageflow/error_pages/error_pages_generator.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #copy_fonts ⇒ Object private
- #copy_images ⇒ Object private
- #copy_stylesheets ⇒ Object private
- #create_not_found ⇒ Object private
Instance Method Details
#copy_fonts ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 15 def copy_fonts directory 'fonts', 'public/pageflow/error_pages/fonts' end |
#copy_images ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 23 def copy_images directory 'images', 'public/pageflow/error_pages/images' end |
#copy_stylesheets ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 19 def copy_stylesheets directory 'stylesheets', 'public/pageflow/error_pages/stylesheets' end |
#create_not_found ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 11 def create_not_found copy_file '404.html', 'public/pageflow/error_pages/404.html' end |