Class: Madmin::ViewGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
GeneratorHelpers
Defined in:
lib/madmin/view_generator.rb

Defined Under Namespace

Classes: BaseResourcePath

Constant Summary

Constants included from GeneratorHelpers

GeneratorHelpers::ROUTES_FILE

Class Method Summary collapse

Methods included from GeneratorHelpers

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

Class Method Details

.template_source_pathObject



10
11
12
13
14
15
# File 'lib/madmin/view_generator.rb', line 10

def self.template_source_path
  File.expand_path(
    "../../../app/views/madmin/application",
    __FILE__
  )
end