lib/generators/dry_crud/templates/app/helpers/standard_form_builder.rb
# Returns true if attr is a non-polymorphic association.
# If one or more macros are given, the association must be of this kind.
Returns true if attr is a non-polymorphic association.
If one or more macros are given, the association must be of this kind.
Returns true if attr is a non - polymorphic association . If one or more macros are given the association must be of this kind .
def association_kind?(attr, type, *macros)
    if type == :integer || type.nil?
      assoc = association(@object, attr, *macros)
      assoc.present? && assoc.options[:polymorphic].nil?
    else
      false
    end
  end
def association_kind? ( attr , type , * macros ) if type == :integer || type . nil? assoc = association ( @object , attr , * macros ) assoc . present? && assoc . options [ :polymorphic ] . nil? else false end end
Returns true if attr is a non-polymorphic association.
Returns true if attr is a non - polymorphic association .
attr
type
macros