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) image_tag('active_admin/transparent.gif', class: "flag flag-#{locale}") end |