Davis W. FrankDavis W. Frank
Standup 7/25/2008
edit Posted by Davis W. Frank on Friday July 25, 2008 at 04:25PM

Interesting Things

  • There was an edge version of Rails (this project has a frozen Rails at some point in the past) that had a bug where a namespaced route would send a POST that should go to MyController#create was instead going to a POST to MyController#index. The fix is to freeze to current Edge, or use alias_method.

Ask for Help

"Any way to turn off a validation in a re-opened class?"

No way to do this. Best to refactor by pulling the validation out of the class and then mixing it in, or not, at a different level.

Comments

  1. Dave Hoover Dave Hoover on July 26, 2008 at 07:28AM

    We had the same question come up in our Studio on Wednesday. It looked to me like it was possible to clear validations in a re-opened class, so I wrote this little guy: http://github.com/redsquirrel/nest/tree/master/validation_killer