Sha256: 4347d70e3029791616f9af5b8f41413a019ade817c5d4f5b5140426bde01a2f0

Contents?: true

Size: 467 Bytes

Versions: 20

Compression:

Stored size: 467 Bytes

Contents

require "rails/generators/named_base"
require "rails/generators/active_model"
require "rails/generators/active_record/migration"
require "active_record"

module ActiveRecord
  module Generators # :nodoc:
    class Base < Rails::Generators::NamedBase # :nodoc:
      include ActiveRecord::Generators::Migration

      # Set the current directory as base for the inherited generators.
      def self.base_root
        File.dirname(__FILE__)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
activerecord-5.1.7 lib/rails/generators/active_record.rb
activerecord-5.1.7.rc1 lib/rails/generators/active_record.rb
activerecord-5.1.6.2 lib/rails/generators/active_record.rb
activerecord-5.1.6.1 lib/rails/generators/active_record.rb
activerecord-5.1.6 lib/rails/generators/active_record.rb
activerecord-5.1.5 lib/rails/generators/active_record.rb
activerecord-5.1.5.rc1 lib/rails/generators/active_record.rb
activerecord-5.1.4 lib/rails/generators/active_record.rb
activerecord-5.1.4.rc1 lib/rails/generators/active_record.rb
activerecord-5.1.3 lib/rails/generators/active_record.rb
activerecord-5.1.3.rc3 lib/rails/generators/active_record.rb
activerecord-5.1.3.rc2 lib/rails/generators/active_record.rb
activerecord-5.1.3.rc1 lib/rails/generators/active_record.rb
activerecord-5.1.2 lib/rails/generators/active_record.rb
activerecord-5.1.2.rc1 lib/rails/generators/active_record.rb
activerecord-5.1.1 lib/rails/generators/active_record.rb
activerecord-5.1.0 lib/rails/generators/active_record.rb
activerecord-5.1.0.rc2 lib/rails/generators/active_record.rb
activerecord-5.1.0.rc1 lib/rails/generators/active_record.rb
activerecord-5.1.0.beta1 lib/rails/generators/active_record.rb