From 7efde22c3ab0464a0896abcaa8be277fd14bdee9 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sun, 16 Apr 2017 10:37:49 -0400 Subject: Use local vars in partials (#1935) * Use local vars in accounts/header partial * Use local variable in 2fa recovery codes partial --- app/views/settings/two_factor_auths/_recovery_codes.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/settings/two_factor_auths/_recovery_codes.html.haml') diff --git a/app/views/settings/two_factor_auths/_recovery_codes.html.haml b/app/views/settings/two_factor_auths/_recovery_codes.html.haml index 719a1e01b..054588b97 100644 --- a/app/views/settings/two_factor_auths/_recovery_codes.html.haml +++ b/app/views/settings/two_factor_auths/_recovery_codes.html.haml @@ -1,6 +1,6 @@ %p.hint= t('two_factor_auth.recovery_instructions') %ol.recovery-codes - - @codes.each do |code| + - recovery_codes.each do |code| %li %samp= code -- cgit