GregSutcliffe/foreman — pull request #2 by domcleal (2012-12-10 12:48:57+00:00)
Title: Rb193 enc params fixes

Two Ruby 1.9 fixes that seem to break the ENC when using class parameters:

undefined method `each' for "fqdn":String

NoMethodError
undefined method `each' for "fqdn":String
app/models/classification.rb:87:in `block in path2matches'
app/models/classification.rb:85:in `each'
app/models/classification.rb:85:in `path2matches'
app/models/classification.rb:55:in `values_hash'
app/models/classification.rb:12:in `enc'
app/models/host.rb:724:in `lookup_keys_class_params'
app/models/host.rb:353:in `info'
app/controllers/hosts_controller.rb:166:in `block (2 levels) in externalNodes'
app/controllers/hosts_controller.rb:165:in `externalNodes'9
lib/foreman/threadsession.rb:31:in `clear_thread'

private method `path_elements' called for #

NoMethodError
private method `path_elements' called for #
app/models/classification.rb:47:in `map'
app/models/classification.rb:47:in `possible_value_orders'
app/models/classification.rb:85:in `path2matches'
app/models/classification.rb:55:in `values_hash'
app/models/classification.rb:12:in `enc'
app/models/host.rb:724:in `lookup_keys_class_params'
app/models/host.rb:353:in `info'
app/controllers/hosts_controller.rb:166:in `block (2 levels) in externalNodes'
app/controllers/hosts_controller.rb:165:in `externalNodes'
lib/foreman/threadsession.rb:31:in `clear_thread'