lib/generators/dry_crud/templates/app/helpers/standard_form_builder.rb
def association_entries(attr, options)
    list = options.delete(:list)
    unless list
      assoc = association(@object, attr)
      list = @template.send(:instance_variable_get, :"@#{assoc.name.to_s.pluralize}")
      unless list
        list = assoc.klass.where(assoc.options[:conditions]).order(assoc.options[:order])
      end
    end
    list
  end
# Returns the list of association entries, either from options[:list],
# the instance variable with the pluralized association name or all
# entries of the association klass.
Returns the list of association entries, either from options[:list],
the instance variable with the pluralized association name or all
entries of the association klass.
Returns the list of association entries either from options [ : list ] the instance variable with the pluralized association name or all entries of the association klass .
def association_entries(attr, options)
    list = options.delete(:list)
    unless list
      assoc = association(@object, attr)
      list = @template.send(:instance_variable_get, :"@#{assoc.name.to_s.pluralize}")
      unless list
        list = assoc.klass.where(assoc.options[:conditions]).order(assoc.options[:order])
      end
    end
    list
  end
def association_entries ( attr , options ) list = options . delete ( :list ) unless list assoc = association ( @object , attr ) list = @template . send ( :instance_variable_get , :" @ #{ assoc . name . to_s . pluralize } " ) unless list list = assoc . klass . where ( assoc . options [ :conditions ] ) . order ( assoc . options [ :order ] ) end end list end
Returns the list of association entries, either from options[:list],
the instance variable with the pluralized association name or all
entries of the association klass.
Returns the list of association entries either from options [ : list ] the instance variable with the pluralized association name or all entries of the association klass .
attr
options