We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8856150 commit b4f51ddCopy full SHA for b4f51dd
lib/active_admin/mongoid/document.rb
@@ -5,8 +5,6 @@ module ActiveAdmin::Mongoid::Document
5
extend ActiveSupport::Concern
6
7
8
-
9
10
# INSTANCE METHODS
11
12
# Returns the column object for the named attribute.
@@ -90,7 +88,8 @@ def cache
90
88
# Columns
91
89
92
def content_columns
93
- @content_columns ||= fields.map(&:second).reject do |f|
+ # cannot cache this, since changes in time (while defining fields)
+ fields.map(&:second).reject do |f|
94
f.name =~ /(^_|^(created|updated)_at)/ or Mongoid::Fields::ForeignKey === f
95
end
96
0 commit comments