lib/ab_admin/config/base.rb in ab_admin-0.8.3 vs lib/ab_admin/config/base.rb in ab_admin-0.9.0

- old
+ new

@@ -21,10 +21,13 @@ model.column_names.each do |column| column_name = column.to_sym next if column_name == :id || options[:skip].try(:include?, column_name) builder.field(column_name) end + model.translated_attribute_names.each do |column_name| + builder.field(column_name, sortable: false) + end if model.translates? end end end class Table < BaseBuilder @@ -35,9 +38,13 @@ self.partial_name = 'search_form' end class Chart < BaseBuilder self.partial_name = 'chart' + end + + class Map < BaseBuilder + self.partial_name = 'map' end class Export < BaseBuilder def render_options {column_names: fields.map(&:name), column_data: fields.map(&:data),