method

required?

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Rails::Generators::GeneratedAttribute
required?() public

No documentation

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

Hide source
# File railties/lib/rails/generators/generated_attribute.rb, line 187
      def required?
        reference? && Rails.application.config.active_record.belongs_to_required_by_default
      end
Register or log in to add new notes.