Changed activities_for method to be a class method on activity