lib/generators/dry_crud/templates/app/helpers/standard_helper.rb
# Formats an active record belongs_to association
Formats an active record belongs_to association
Formats an active record belongs_to association
def format_assoc(obj, assoc)
    if val = obj.send(assoc.name)
      assoc_link(assoc, val)
    else
      ta(:no_entry, assoc)
    end
  end
def format_assoc ( obj , assoc ) if val = obj . send ( assoc . name ) assoc_link ( assoc , val ) else ta ( :no_entry , assoc ) end end
Formats an active record belongs_to association
Formats an active record belongs_to association
obj
assoc