Class: Pageflow::Generators::ErrorPagesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/pageflow/error_pages/error_pages_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_fontsObject



14
15
16
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 14

def copy_fonts
  directory 'fonts', 'public/pageflow/error_pages/fonts'
end

#copy_imagesObject



22
23
24
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 22

def copy_images
  directory 'images', 'public/pageflow/error_pages/images'
end

#copy_stylesheetsObject



18
19
20
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 18

def copy_stylesheets
  directory 'stylesheets', 'public/pageflow/error_pages/stylesheets'
end

#create_not_foundObject



10
11
12
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 10

def create_not_found
  copy_file '404.html', 'public/pageflow/error_pages/404.html'
end