class Authorio::InstallGenerator

Public Class Methods

source_paths() click to toggle source
# 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

Public Instance Methods

add_files() click to toggle source
# File lib/generators/authorio/install/install_generator.rb, line 13
def add_files
  template 'authorio.rb', 'config/initializers/authorio.rb'
end