diff --git a/app/controllers/registrar/account_controller.rb b/app/controllers/registrar/account_controller.rb index 9252098b8..0bb40ae3c 100644 --- a/app/controllers/registrar/account_controller.rb +++ b/app/controllers/registrar/account_controller.rb @@ -1,6 +1,7 @@ class Registrar class AccountController < BaseController skip_authorization_check + helper_method :iban_max_length def show; end @@ -20,5 +21,9 @@ class Registrar def registrar_params params.require(:registrar).permit(:billing_email, :iban) end + + def iban_max_length + Iban.max_length + end end end \ No newline at end of file diff --git a/app/views/registrar/account/_form.html.erb b/app/views/registrar/account/_form.html.erb index 7a7e4491b..ab1fb0294 100644 --- a/app/views/registrar/account/_form.html.erb +++ b/app/views/registrar/account/_form.html.erb @@ -17,7 +17,8 @@