Project

General

Profile

Refactor #10402

Need a centralized way to convert values to booleans

Added by Walden Raines over 6 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Currently in Foreman strings are converted to booleans on a case by case basis, we should centralize this.


Related issues

Related to Foreman - Bug #11945: param_true? throws 'undefined local variable or method' errorClosed2015-09-24

Associated revisions

Revision c74610f9 (diff)
Added by Walden Raines over 6 years ago

Fixes #10402: add to_bool function for converting to boolean.

This commit adds a to_bool function for casting values to boolean
as well as an example usage.

http://projects.theforeman.org/issues/10402

History

#1 Updated by Dominic Cleal over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2356 added
  • Pull request deleted ()

#2 Updated by Dominic Cleal over 6 years ago

  • Legacy Backlogs Release (now unused) set to 35

#3 Updated by Walden Raines over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal over 6 years ago

  • Related to Bug #11945: param_true? throws 'undefined local variable or method' error added

Also available in: Atom PDF