What's the community 'most liked' approach to assert on a request, on query or body parameters, the param[:foo] is actually true otherwise you do other thing.
Do you use?
if params[:foo]
if params[:foo].to_s == "true"
if params[:foo].presence?
if ActiveModel::Type::Boolean.new.cast(params[:foo])
Just curious on what do you use.