theforeman/foreman — pull request #88 by logicminds (2012-06-26 18:28:13+00:00)
Title: 1710

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.