Commit 156ae50673b9276a472fb34c85a2f2d3bdf933ed
1 parent
84904a0e
Exists in
master
and in
22 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 | ... | ... |