Noosfero/noosfero

View on GitHub
plugins/require_auth_to_comment/lib/ext/profile.rb

Summary

Maintainability
A
0 mins
Test Coverage
require_dependency "profile"

class Profile
  settings_items :allow_unauthenticated_comments, type: :boolean
  attr_accessible :allow_unauthenticated_comments

  descendants.each do |descendant|
    descendant.attr_accessible :allow_unauthenticated_comments
  end
end