lib/generators/yoti/install/install_generator.rb in yoti-1.3.1 vs lib/generators/yoti/install/install_generator.rb in yoti-1.4.0
- old
+ new
@@ -1,8 +1,8 @@
module Yoti
module Generators
class InstallGenerator < Rails::Generators::Base
- source_root File.expand_path('../templates', __FILE__)
+ source_root File.expand_path('./templates', __dir__)
desc 'This generator creates an Yoti initializer file at config/initializers'
def copy_initializer
template 'yoti.rb', 'config/initializers/yoti.rb'