Sha256: 73640f71f44f966610f5bfd7264bc4d24a44e1a2c1dacfcd044de764071cb3b7

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

require 'rails/generators'
require 'rails/generators/migration'
require 'active_record'
require 'rails/generators/active_record'
require 'generators/audited/migration'

module Audited
  module Generators
    class InstallGenerator < Rails::Generators::Base
      include Rails::Generators::Migration
      extend Audited::Generators::Migration

      source_root File.expand_path("../templates", __FILE__)

      def copy_migration
        migration_template 'install.rb', 'db/migrate/install_audited.rb'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
audited-hp-4.3.1 lib/generators/audited/install_generator.rb
audited-hp-4.3.0 lib/generators/audited/install_generator.rb
audited-4.3.0 lib/generators/audited/install_generator.rb