Class: ActiveAdmin::Generators::PageGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/active_admin/page/page_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_config_fileObject



7
8
9
# File 'lib/generators/active_admin/page/page_generator.rb', line 7

def generate_config_file
  template "page.rb", "app/admin/#{file_path.tr('/', '_')}.rb"
end