comment_wrapper.rb 243 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 class AntiSpamPlugin::CommentWrapper < AntiSpamPlugin::Wrapper alias_attribute :author, :author_name alias_attribute :user_ip, :ip_address alias_attribute :content, :body def self.wraps?(object) object.kind_of?(Comment) end end