lib/administrate/base_dashboard.rb in administrate-0.10.0 vs lib/administrate/base_dashboard.rb in administrate-0.11.0

- old
+ new

@@ -30,10 +30,14 @@ attribute_names.each_with_object({}) do |name, attributes| attributes[name] = attribute_type_for(name) end end + def all_attributes + attribute_types.keys + end + def form_attributes self.class::FORM_ATTRIBUTES end def permitted_attributes @@ -59,10 +63,10 @@ collection_attributes.map do |key| field = self.class::ATTRIBUTE_TYPES[key] next key if association_classes.include?(field) - key if association_classes.include?(field.try :deferred_class) + key if association_classes.include?(field.try(:deferred_class)) end.compact end private