This project is archived and is in readonly mode.
Remove #:nodoc: for ActiveRecord methods needed outside of Rails
Reported by Brian Candler | March 10th, 2009 @ 10:40 AM | in 2.x
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.
Comments and changes to this ticket
-
Pratik May 16th, 2009 @ 05:48 PM
- 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.
-
Jeff Kreeftmeijer November 8th, 2010 @ 08:54 AM
- Tag cleared.
- Importance changed from to Low
Automatic cleanup of spam.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>