Class: Adminterface::Generators::ConfigsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Adminterface::Generators::ConfigsGenerator
- Defined in:
- lib/generators/adminterface/configs/configs_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy ⇒ Object
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_readme ⇒ Object
14 15 16 |
# File 'lib/generators/adminterface/configs/configs_generator.rb', line 14 def show_readme readme "README" if behavior == :invoke end |