Skip to content

ActiveRecord Readme correction #761

@lighthouse-import

Description

@lighthouse-import

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6038
Created by y_feldblum (at yahoo) - 2011-02-19 09:28:13 UTC

The following code is in the ActiveRecord readme file:

class CommentObserver < ActiveRecord::Observer
  def after_create(comment) # is called just after Comment#save
    Notifications.deliver_new_comment("david@loudthinking.com", comment)
  end
end

The middle line appears to use the old ActionMailer API, and should be updated to use the new ActionMailer API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions