Module: Alchemy::Admin::AttachmentsHelper

Includes:
BaseHelper
Defined in:
app/helpers/alchemy/admin/attachments_helper.rb

Instance Method Summary collapse

Methods included from BaseHelper

#alchemy_body_class, #alchemy_datepicker, #button_with_confirm, #clipboard_select_tag_options, #current_alchemy_user_name, #delete_button, #js_filter_field, #link_to_confirm_dialog, #link_to_dialog, #link_url_regexp, #max_image_count, #merge_params, #merge_params_only, #merge_params_without, #new_asset_path_with_session_information, #render_alchemy_title, #render_hint_for, #sites_for_select, #toolbar, #toolbar_button, #translations_for_select

Methods included from NavigationHelper

#admin_subnavigation, #alchemy_main_navigation_entry, #entry_active?, #main_navigation_css_classes, #navigate_module, #sorted_alchemy_modules, #url_for_module, #url_for_module_sub_navigation

Methods included from BaseHelper

#_t, #page_or_find, #render_flash_notice, #render_icon, #render_message, #shorten, #warning

Instance Method Details

#mime_to_human(mime) ⇒ Object



6
7
8
# File 'app/helpers/alchemy/admin/attachments_helper.rb', line 6

def mime_to_human(mime)
  Alchemy.t(mime, scope: 'mime_types', default: Alchemy.t(:document))
end