Class: Madmin::Generators::Views::LayoutGenerator

Inherits:
ViewGenerator
  • Object
show all
Defined in:
lib/generators/madmin/views/layout_generator.rb

Constant Summary

Constants included from Madmin::GeneratorHelpers

Madmin::GeneratorHelpers::ROUTES_FILE

Instance Method Summary collapse

Methods inherited from ViewGenerator

template_source_path

Methods included from Madmin::GeneratorHelpers

#call_generator, #optimize_indentation, #rails6_1_and_up?, #route, #route_namespace_exists?

Instance Method Details

#copy_templateObject



9
10
11
12
13
14
15
16
17
# File 'lib/generators/madmin/views/layout_generator.rb', line 9

def copy_template
  copy_file(
    "../../layouts/madmin/application.html.erb",
    "app/views/layouts/madmin/application.html.erb"
  )

  call_generator("madmin:views:navigation")
  copy_resource_template("_javascript")
end