Commit a276c613d80ba8e799dffeb438cc529644bce19b
Committed by
Leandro Santos
1 parent
7bbf13a7
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
require_auth_to_comment: fix tests
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
plugins/require_auth_to_comment/features/require_auth_to_comment.feature
plugins/require_auth_to_comment/lib/ext/profile.rb
| ... | ... | @@ -3,4 +3,8 @@ require_dependency 'profile' |
| 3 | 3 | class Profile |
| 4 | 4 | settings_items :allow_unauthenticated_comments, :type => :boolean |
| 5 | 5 | attr_accessible :allow_unauthenticated_comments |
| 6 | + | |
| 7 | + descendants.each do |descendant| | |
| 8 | + descendant.attr_accessible :allow_unauthenticated_comments | |
| 9 | + end | |
| 6 | 10 | end | ... | ... |