Class: TooRendermonkeyGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/too_rendermonkey/too_rendermonkey_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



3
4
5
# File 'lib/generators/too_rendermonkey/too_rendermonkey_generator.rb', line 3

def self.source_root
  @source_root ||= File.expand_path('../templates', __FILE__)
end

Instance Method Details

#copy_config_filesObject



7
8
9
# File 'lib/generators/too_rendermonkey/too_rendermonkey_generator.rb', line 7

def copy_config_files
  copy_file("too_rendermonkey.rb", "config/initializers/too_rendermonkey.rb")
end