Class: Authorio::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_pathsObject



5
6
7
8
9
10
11
# File 'lib/generators/authorio/install/install_generator.rb', line 5

def self.source_paths
  paths = []
  paths << File.expand_path('../templates', "../../#{__FILE__}")
  paths << File.expand_path('../templates', "../#{__FILE__}")
  paths << File.expand_path('templates', __dir__)
  paths.flatten
end

Instance Method Details

#add_filesObject



13
14
15
# File 'lib/generators/authorio/install/install_generator.rb', line 13

def add_files
  template 'authorio.rb', 'config/initializers/authorio.rb'
end