Module: NoBrainer::Generators::NamespaceFix

Included in:
InstallGenerator, ModelGenerator
Defined in:
lib/rails/generators/nobrainer/namespace_fix.rb

Instance Method Summary collapse

Instance Method Details

#base_nameObject



3
4
5
# File 'lib/rails/generators/nobrainer/namespace_fix.rb', line 3

def base_name
  'nobrainer'
end

#base_rootObject



7
8
9
# File 'lib/rails/generators/nobrainer/namespace_fix.rb', line 7

def base_root
  File.dirname(__FILE__)
end

#namespaceObject



11
12
13
# File 'lib/rails/generators/nobrainer/namespace_fix.rb', line 11

def namespace
  super.gsub(/no_brainer/, 'nobrainer')
end