method

generate_abstract_class

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::Generators::ModelGenerator
generate_abstract_class() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/rails/generators/active_record/model/model_generator.rb, line 66
        def generate_abstract_class
          path = File.join("app/models", "#{database.underscore}_record.rb")
          return if File.exist?(path)

          template "abstract_base_class.rb", path
        end
Register or log in to add new notes.