GitHub PushEvent at 2014-07-15 05:04:47
Repository: rails
Actor: Agis-
Payload: {"shas":[["ecd1f075dc12399ecd39eb69620ede715156b0ca","29906857a1a63eb870f87aaa2d9d7e6a926e1e8a@gmail.com","Pass the argument in has_many through relation\n\nFixes #16128\n\nThis bug was introduced in https://github.com/rails/rails/commit/c35e438620f2d56562251571377995359546393d\nso it's present from 4.1.2-rc1 and after.\n\nhttps://github.com/rails/rails/commit/c35e438620f2d56562251571377995359546393d merges any relation\nscopes passed as proc objects to the relation, but does *not* take into account the case where\nthe lambda requires an argument (ie. the current record).\n\nTo reproduce see https://gist.github.com/Agis-/5f1f0d664d2cd08dfb9b\n\nThis is a workaround, not a fix: https://github.com/rails/rails/pull/16172#issuecomment-48979371","Agis-",true]],"size":1,"ref":"refs/heads/hmt_scope_arity","head":"ecd1f075dc12399ecd39eb69620ede715156b0ca"}