gitlab-org--gitlab-foss/lib
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
..
api
assets
backup
banzai
ci
gitlab Correct arity for instrumented methods w/o args 2016-01-25 21:28:59 +01:00
omni_auth
rouge/formatters
support
tasks
award_emoji.rb
banzai.rb
disable_email_interceptor.rb
dnsxl_check.rb
event_filter.rb
extracts_path.rb
file_size_validator.rb
file_streamer.rb
gitlab.rb
gt_one_coercion.rb
repository_cache.rb
static_model.rb
unfold_form.rb
uploaded_file.rb
version_check.rb