author avatar

akshay

Wed Mar 28 2018

ActiveModel Boolean type inlcudes rules for coersion to handle user input appropriately. We can make use of this when ever we would need to do explicit type casting on user input. https://github.com/rails/rails/blob/47eadb68bfcae1641b019e07e051aa39420685fb/activemodel/lib/active_model/type/boolean.rb