Class: Fortitude::Generators::ScaffoldGenerator

Inherits:
Erb::Generators::ScaffoldGenerator
  • Object
show all
Defined in:
lib/rails/generators/fortitude/scaffold/scaffold_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_view_filesObject


8
9
10
11
12
13
# File 'lib/rails/generators/fortitude/scaffold/scaffold_generator.rb', line 8

def copy_view_files
  available_views.each do |view|
    filename = filename_with_extensions(view)
    template "#{view}.html.rb", File.join("app/views", controller_file_path, filename)
  end
end

#create_view_baseObject


15
16
17
# File 'lib/rails/generators/fortitude/scaffold/scaffold_generator.rb', line 15

def create_view_base
  generate "fortitude:base_view"
end