app/helpers/kuhsaft/cms/admin_helper.rb in kuhsaft-2.2.6 vs app/helpers/kuhsaft/cms/admin_helper.rb in kuhsaft-2.3.0
- old
+ new
@@ -1,9 +1,8 @@
module Kuhsaft
module Cms
module AdminHelper
-
def render_language_switch?
I18n.available_locales.size > 1
end
def link_to_content_locale(locale)
@@ -13,10 +12,10 @@
elsif params[:action] == 'update'
action = 'edit'
end
link_to locale.to_s.upcase, url_for(
- :action => action, :content_locale => locale)
+ action: action, content_locale: locale)
end
end
end
end