… empty collection resulting in an error
…ach' for nil:NilClass https://bugzilla.redhat.com/show_bug.cgi?id=769896 https://bugzilla.redhat.com/show_bug.cgi?id=769898 + This problem arose from an additional class, MarketingProduct, that extended Product. The lazy_accessor.rb methods could not handle this which caused the attributes to go missing. The fix is to check a class's parent for the lazy_attributes method and add it to the list of attributes. (This is done recursively up the hierarchy until a class stops responding to that method.)
This small commit changes the name of the Glue::Pulp::Repos instance method from repository_url to repo_url. We recently added a repositories resource to routes.rb that resulted in a name collision with the beforementioned method and the repository_url method that RAILS provides by default. We could have changed the route; however, we use repositories elsewhere in the routes.rb for other interfaces and we use repo_* elsewhere in Glue::Pulp::Repos; therefore, this changed seemed to keep the interfaces the most consistent.