Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save awesome/4219877 to your computer and use it in GitHub Desktop.
Save awesome/4219877 to your computer and use it in GitHub Desktop.
How to parse true/false parameters to boolean attributes with ActiveRecord
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