README.md in rakismet-0.4.0 vs README.md in rakismet-0.4.1
- old
+ new
@@ -70,20 +70,20 @@
however. If yours differ, just tell Rakismet what to call them:
class Comment
include Rakismet::Model
attr_accessor :commenter_name, :commenter_email
- rakismet_attributes :author => :commenter_name,
- :author_email => :commenter_email
+ rakismet_attrs :author => :commenter_name,
+ :author_email => :commenter_email
end
Or you can pass in a proc, to access associations:
class Comment < ActiveRecord::Base
include Rakismet::Model
belongs_to :author
- rakismet_attributes :author => proc { author.name },
- :author_email => proc { author.email }
+ rakismet_attrs :author => proc { author.name },
+ :author_email => proc { author.email }
end
Rakismet::Controller
--------------------
Perhaps you want to check a comment's spam status at creation time, and you