lib/ui_bibz/ui/ux/tables/components/store.rb in ui_bibz-3.0.0.beta19 vs lib/ui_bibz/ui/ux/tables/components/store.rb in ui_bibz-3.0.0
- old
+ new
@@ -55,10 +55,10 @@
def limit_value
@records.limit_value
end
def columns
- @columns ||= Columns.new(model.new.attributes.keys.map { |record| Column.new(record, { name: record.humanize }) })
+ @columns ||= Columns.new(model.attribute_names.map { |attribute_name| Column.new(attribute_name, { name: attribute_name.humanize }) })
end
attr_reader :model
def search