theforeman/foreman — pull request #89 by logicminds (2012-06-26 18:38:04+00:00)
Title: fixes #1710 - Hosts json index function returns too much

Since the default show method indirectly called to_json with an options hash previously defined somewhere else in the controller I had to explicitly state I wanted the host parameters method included in json output. I also removed the as_json method since its no longer required.

By default when using format.json rails will pass in a options hash indirectly if not defined.