little application_helper cleanup: remove deprecated helper (ref. 7a564c095f)

This commit is contained in:
Marc Anguera Insa
2018-01-26 20:55:07 +01:00
parent e4392b66ef
commit e4cda8b955

View File

@ -1,5 +1,3 @@
require "date"
module ApplicationHelper
TEXT_SUCCESS = 'text-success'.freeze
@ -40,7 +38,7 @@ module ApplicationHelper
messages = resource.errors.
full_messages.map { |msg| content_tag(:li, msg) }.join
html = <<-HTML
<div class="alert alert-error alert-block">
<div class="alert alert-error alert-block">
<button type="button" class="close" data-dismiss="alert">x</button>
<ul>
#{messages}
@ -70,14 +68,6 @@ module ApplicationHelper
end
end
private
def locale_menu_item(locale)
t("locales.#{locale}", locale: locale).tap do |s|
s << " (#{t("locales.#{locale}")})" unless I18n.locale == locale
end
end
def get_body_css_class(controller)
classes = {
'home' => 'landing-page',