Skip to content

Commit aabd276

Browse files
committed
Fixing PGError: ERROR: column active_admin_comments.admin does not exist. Rails 3 does not like where(:symbol => :symbol) for some reason. Could be related to the squeel gem.
1 parent 10ecc0a commit aabd276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/comments/views/active_admin_comments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def title_content
2121
end
2222

2323
def record_comments
24-
@record_comments ||= @record.active_admin_comments.where(:namespace => active_admin_namespace.name)
24+
@record_comments ||= @record.active_admin_comments.where(:namespace => active_admin_namespace.name.to_s)
2525
end
2626

2727
def build_comments

0 commit comments

Comments
 (0)