Class: ActiveAdmin::Generators::ResourceGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_config_fileObject



8
9
10
# File 'lib/generators/active_admin/resource/resource_generator.rb', line 8

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