cirandas.net

ref: master

plugins/require_auth_to_comment/lib/ext/profile.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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