Class: Garden::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/garden/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_localesObject



7
8
9
# File 'lib/generators/garden/install/install_generator.rb', line 7

def copy_locales
  directory "locales", "config/locales"
end

#install_punditObject



11
12
13
# File 'lib/generators/garden/install/install_generator.rb', line 11

def install_pundit
  generate("pundit:install", "--skip")
end