10000 Merge pull request #5094 from Techbrunch/5093-handle-table-name-prefi… · ybart/activeadmin@6eaef51 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6eaef51

Browse files
authored
Merge pull request activeadmin#5094 from Techbrunch/5093-handle-table-name-prefix-and-suffix
Handle table prefix & table suffix for ActiveAdminComment model
2 parents 98365c9 + a1c616f commit 6eaef51

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Bug Fixes
66

7+
* Fixed [#5093][] Handle table prefix & table suffix for `ActiveAdminComment` model
78
* Fixed [#4173][] by including the default Kaminari templates [#5069][] by [@javierjulio][]
89
* Fixed [#5043][]. Do not crash in sidebar rendering when a default scope is not
910
specified. [#5044] by [@Fivell][].

lib/active_admin/orm/active_record/comments/comment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module ActiveAdmin
22
class Comment < ActiveRecord::Base
33

4-
self.table_name = 'active_admin_comments'
4+
self.table_name = "#{table_name_prefix}active_admin_comments#{table_name_suffix}"
55

66
belongs_to :resource, polymorphic: true
77
belongs_to :author, polymorphic< 37AF /span>: true

0 commit comments

Comments
 (0)
0