lib/generators/buoys/install_generator.rb in buoys-1.0.0 vs lib/generators/buoys/install_generator.rb in buoys-1.1.0
- old
+ new
@@ -2,10 +2,10 @@
require 'rails/generators'
module Buoys
class InstallGenerator < Rails::Generators::Base
- source_root File.expand_path('../templates', __FILE__)
+ source_root File.expand_path('templates', __dir__)
class_option :template
def create_files
copy_file 'buoys.en.yml', 'config/locales/buoys.en.yml'