lib/generators/install_generator.rb in external_services-0.4.4 vs lib/generators/install_generator.rb in external_services-0.5.0

- old
+ new

@@ -5,17 +5,17 @@ module Generators # Installs ExternalServices in a rails app. class InstallGenerator < ::Rails::Generators::Base include ::Rails::Generators::Migration - source_root File.expand_path('../templates', __FILE__) + source_root File.expand_path('templates', __dir__) desc 'Generates migrations and directories.' def migration_version - return unless Rails::VERSION::MAJOR >= 5 + return unless Rails::VERSION::MAJOR >= 5 - "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" + "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" end def create_migration_files add_migration('create_external_services') add_migration('create_external_services_api_actions')