Class: Adminterface::Generators::ConfigsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/adminterface/configs/configs_generator.rb

Instance Method Summary collapse

Instance Method Details

#copyObject



9
10
11
12
# File 'lib/generators/adminterface/configs/configs_generator.rb', line 9

def copy
  directory Adminterface::Engine.root.join("lib/adminterface/fixtures"),
    "config/adminterface/#{namespace.underscore}/"
end

#show_readmeObject



14
15
16
# File 'lib/generators/adminterface/configs/configs_generator.rb', line 14

def show_readme
  readme "README" if behavior == :invoke
end