Class: Authority::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_forbiddenObject



15
16
17
# File 'lib/generators/authority/install_generator.rb', line 15

def copy_forbidden
  template "403.html", "public/403.html"
end

#copy_initializerObject



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

def copy_initializer
  template "authority.rb", "config/initializers/authority.rb"
end