#117 ✓resolved
Paul

Session::Validation docs slightly incorrect.

Reported by Paul | June 7th, 2009 @ 01:34 PM

In attempting to do my own validation in the way described in the docs, I found that the attempted_record was nil in the before_validation callback. A quick look at the errors method makes it look like its being set to nil there but, it is magically available on the after_validation callback.

My understanding of the codebase is very limited so its entirely possible that I'm not grokking everything here but I have provided a small patch for the documentation anyway.

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson June 20th, 2009 @ 04:45 AM

    • State changed from “new” to “resolved”

    Thanks for this, I will go ahead and apply it. If you haven't checked it out, you might like forking the project on github and making the changes there. I am pretty sure that have inline editing as well. Just thought it might be easier. Thanks!

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Attachments

Pages