Files
gitlabhq/lib/gitlab
Yorick Peterse b74308c0a7 Correct arity for instrumented methods w/o args
This ensures that an instrumented method that doesn't take arguments
reports an arity of 0, instead of -1.

If Ruby had a proper method for finding out the required arguments of a
method (e.g. Method#required_arguments) this would not have been an
issue. Sadly the only two methods we have are Method#parameters and
Method#arity, and both are equally painful to use.

Fixes gitlab-org/gitlab-ce#12450
2016-01-25 21:28:59 +01:00
..
2015-12-15 00:53:52 -02:00
2015-11-30 18:36:34 +02:00
2015-12-15 00:53:52 -02:00
2015-12-15 00:53:52 -02:00
2014-09-29 12:05:17 +03:00
2015-11-18 13:31:18 +01:00
2014-10-06 00:14:46 +02:00
2015-02-24 15:07:24 +01:00
2015-11-16 12:39:13 +01:00
2014-10-06 00:14:46 +02:00
2015-12-15 08:02:19 -08:00
2015-09-08 20:23:01 -04:00
2014-10-31 17:22:16 -07:00
2015-04-14 15:58:28 +02:00
2014-10-06 00:14:46 +02:00
2015-03-24 18:35:57 -07:00
2014-10-06 00:14:46 +02:00
2015-12-07 15:13:06 +02:00
2015-08-24 13:59:01 +03:00
2015-11-26 17:03:43 +02:00
2014-10-06 00:14:46 +02:00
2015-08-26 11:30:38 -07:00
2013-06-06 10:10:51 +09:00