lib/generators/audited/install_generator.rb in audited-4.10.0 vs lib/generators/audited/install_generator.rb in audited-5.0.0
- old
+ new
@@ -1,12 +1,14 @@
-require 'rails/generators'
-require 'rails/generators/migration'
-require 'active_record'
-require 'rails/generators/active_record'
-require 'generators/audited/migration'
-require 'generators/audited/migration_helper'
+# frozen_string_literal: true
+require "rails/generators"
+require "rails/generators/migration"
+require "active_record"
+require "rails/generators/active_record"
+require "generators/audited/migration"
+require "generators/audited/migration_helper"
+
module Audited
module Generators
class InstallGenerator < Rails::Generators::Base
include Rails::Generators::Migration
include Audited::Generators::MigrationHelper
@@ -16,10 +18,10 @@
class_option :audited_user_id_column_type, type: :string, default: "integer", required: false
source_root File.expand_path("../templates", __FILE__)
def copy_migration
- migration_template 'install.rb', 'db/migrate/install_audited.rb'
+ migration_template "install.rb", "db/migrate/install_audited.rb"
end
end
end
end