opscode/supermarket — pull request #301 by bcobb (2014-04-21 22:34:49+00:00)
Title: Fix cookbook platform and dependency access scope

Accessing these relations through a has_one relation results in displaying all `SupportedPlatform` and `CookbookDependency` records associated with _any_ version of the cookbook.

This feels like it could be a Rails bug, but for the time being, we can fix it by adding these two simple methods to `Cookbook`.