Forked from manuelmorales/activerecord_parse_boolean.rb
Created
December 5, 2012 21:59
-
-
Save awesome/4219877 to your computer and use it in GitHub Desktop.
How to parse true/false parameters to boolean attributes with ActiveRecord
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::ConnectionAdapters::Column.value_to_boolean(parameter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment