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


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

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