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 809e1c7 commit b3e61e3Copy full SHA for b3e61e3
lib/active_admin/mongoid/document.rb
@@ -53,7 +53,7 @@ def column_for_attribute(name)
53
module ClassMethods
54
def content_columns
55
# cannot cache this, since changes in time (while defining fields)
56
- fields.map(&:second).reject do |f|
+ fields.map(&:second).reject! do |f|
57
f.name =~ /(^_|^(created|updated)_at)/ or Mongoid::Fields::ForeignKey === f
58
end
59
0 commit comments