Project

General

Profile

Actions

Refactor #13978

closed

Replace AR connection value_to_boolean method with Foreman::Cast

Added by Dominic Cleal over 8 years ago. Updated about 6 years ago.

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

Description

The host common #lookup_values_attributes= method uses an internal Active Record method value_to_boolean to parse the _destroy parameter from the nested attributes supplied by the UI.

https://github.com/theforeman/foreman/blob/1.11.0-RC1/app/models/concerns/host_common.rb#L54-L58

This method has been moved in Rails 4.2 and since it's really rather internal, it should be replaced by Foreman::Cast.to_bool or similar.


Related issues 1 (0 open1 closed)

Blocks Foreman - Feature #13244: Upgrade Ruby on Rails to 4.2ClosedDominic Cleal01/15/2016Actions
Actions

Also available in: Atom PDF