Quick fix for circular dependency error in Rails 4