Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Remove #:nodoc: for ActiveRecord methods needed outside of Rails

#2192

When using ActiveRecord in a framework other than Rails, you will need to use these methods:

  • verify_active_connections! before handling each request, to ensure DB connection has not been dropped

  • reset_subclasses before reloading model classes, otherwise you get strangeness like the same validations being performed multiple times.

However, both of these methods are marked #:nodoc:

The attached patch removes #:nodoc: and adds a brief comment as to the purpose of each one.

Reported by Brian Candler · March 10th, 2009 @ 10:40 AM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: Low

Activity

  1. Pratik
    Pratik
    • State changed from new to wontfix

    This should be fixed in docrails - http://guides.rubyonrails.org/contributing_to_rails.html#the-rails-...

    Also, the "If using a framework other than Rails," part should go. As per the convention, it should be something like "Ensures all the connections are valid"

    Thanks.

    May 16th, 2009 @ 05:48 PM

  2. Jeff Kreeftmeijer
    Jeff Kreeftmeijer
    • Tag cleared.
    • Importance changed from to Low

    Automatic cleanup of spam.

    November 8th, 2010 @ 08:54 AM

  3. bingbing