aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/admin_public_body_helper.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/app/helpers/admin_public_body_helper.rb b/app/helpers/admin_public_body_helper.rb
deleted file mode 100644
index 97f656ddb..000000000
--- a/app/helpers/admin_public_body_helper.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-module AdminPublicBodyHelper
-
- def public_body_form_object(public_body, locale)
- if locale == I18n.default_locale
- # The default locale is submitted as part of the bigger object...
- prefix = 'public_body'
- object = public_body
- else
- # ...but additional locales go "on the side"
- prefix = :translations
- object = if public_body.new_record?
- PublicBody::Translation.new
- else
- public_body.find_translation_by_locale(locale.to_s)
- end
- object ||= PublicBody::Translation.new
- end
-
- { :object => object, :prefix => prefix }
- end
-
-end