Sha256: 5ab381a0a3f4149f87e5ca130e7d31872b42892fe4993add6615605d12baa214

Contents?: true

Size: 483 Bytes

Versions: 186

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

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
        __dir__
      end
    end
  end
end

Version data entries

186 entries across 181 versions & 14 rubygems

Version Path
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/rails/generators/active_record.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/rails/generators/active_record.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/rails/generators/active_record.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/rails/generators/active_record.rb
activerecord-7.0.5 lib/rails/generators/active_record.rb
activerecord-7.0.4.3 lib/rails/generators/active_record.rb
activerecord-6.1.7.3 lib/rails/generators/active_record.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/rails/generators/active_record.rb
activerecord-6.1.7.2 lib/rails/generators/active_record.rb
activerecord-7.0.4.2 lib/rails/generators/active_record.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/rails/generators/active_record.rb
activerecord-7.0.4.1 lib/rails/generators/active_record.rb
activerecord-6.1.7.1 lib/rails/generators/active_record.rb
activerecord-6.0.6.1 lib/rails/generators/active_record.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/rails/generators/active_record.rb
activerecord-7.0.4 lib/rails/generators/active_record.rb
activerecord-6.1.7 lib/rails/generators/active_record.rb
activerecord-6.0.6 lib/rails/generators/active_record.rb
activerecord-7.0.3.1 lib/rails/generators/active_record.rb
activerecord-6.1.6.1 lib/rails/generators/active_record.rb