Module: ActiveAdmin::ViewHelpers::FlagHelper
- Included in:
- ActiveAdmin::ViewHelpers
- Defined in:
- lib/active_admin/view_helpers/flag_helper.rb
Instance Method Summary collapse
-
#flag_icon(locale) ⇒ Object
Return an image tag with background of given locale.
Instance Method Details
#flag_icon(locale) ⇒ Object
Return an image tag with background of given locale
8 9 10 |
# File 'lib/active_admin/view_helpers/flag_helper.rb', line 8 def flag_icon(locale) content_tag :i, '', class: "flag flag-#{locale}", title: I18n.t("active_admin.globalize.language.#{locale}") end |