gitlab-org--gitlab-foss/lib
Michael Kozono d9c4ebc5a0 Extract `Repository.memoize_method` method
And reuse `Gitlab::Utils::StrongMemoize`.

There is a subtle behavior change required to reuse StrongMemoize in
this case. The early fallback check now occurs *before* reading the
memoized value instead of after.

I think this is fine since a memoized value should only exist if
`exists?` is also already memoized as `true`.
2018-09-27 15:16:09 -07:00
..
api Remove background job throttling feature 2018-09-24 18:41:14 +03:00
assets
backup
banzai Use `Gitlab::SafeRequestStore` in more places 2018-09-24 12:11:27 -07:00
bitbucket
bitbucket_server
constraints
container_registry
declarative_policy
generators/rails/post_deployment_migration
gitaly
gitlab Extract `Repository.memoize_method` method 2018-09-27 15:16:09 -07:00
google_api
haml_lint
json_web_token
mattermost
microsoft_teams
object_storage
omni_auth/strategies
peek
rouge
rspec_flaky
support Correct Gitlab Capitalization in code files 2018-09-21 12:05:37 +00:00
system_check
tasks Enable write to auth_keys file during restore 2018-09-25 09:34:14 -05:00
after_commit_queue.rb
backup.rb
banzai.rb
carrier_wave_string_file.rb
declarative_policy.rb
event_filter.rb
expand_variables.rb
extracts_path.rb Fix rubocop Style/ZeroLengthPredicate 2018-09-18 14:31:17 +05:00
feature.rb Refactor Feature.flipper method 2018-09-24 12:29:22 -07:00
file_size_validator.rb
forever.rb
gitlab.rb
gt_one_coercion.rb
milestone_array.rb
mysql_zero_date.rb
static_model.rb
system_check.rb
unfold_form.rb
uploaded_file.rb
version_check.rb