orbit-basic/app/helpers/admin/ad_images_helper.rb

8 lines
140 B
Ruby

module Admin::AdImagesHelper
def active_when_default_locale_eq locale
locale.to_sym == I18n.default_locale ? 'active': ''
end
end