mattdbridges/validates_formatting_of — pull request #5 by sferik (2011-12-15 03:27:42+00:00)
Title: Allow nil fix

I think I found an issue in `model_additions.rb` where `:allow_nil` is set to `false`, even if it isn't explicitly passed in the options hash. As a result, setting `:allow_blank => true` will result in `validates` being called with both `:allow_blank => false, :allow_blank => true`.

With this patch, only options that are explicitly passed in the validator will be sent to `validates`.

I also cleaned up some trailing whitespace (friendlier for vim editing) and added the dependency status from Gemnasium in the README.