Module: Tramway::Admin::ApplicationHelper

Includes:
AuthManagment, FontAwesome::Rails::IconHelper, AdditionalButtonsBuilder, FocusGeneratorHelper, InputsHelper, NavbarHelper, RecordsHelper, RussianCasesHelper, SingletonHelper, Collections::Helper
Defined in:
app/helpers/tramway/admin/application_helper.rb

Instance Method Summary collapse

Methods included from FocusGeneratorHelper

#focus_selector

Methods included from InputsHelper

#association_params, #polymorphic_association_params

Methods included from NavbarHelper

#customized_admin_navbar, #customized_admin_navbar_given?

Methods included from SingletonHelper

#current_model_singleton_path, #edit_current_model_singleton_path

Methods included from RecordsHelper

#active_tab, #admin_index_path_of_model, #current_model_record_path, #current_model_records_path, #decorator_class, #edit_current_model_record_path, #get_collection, #model_class, #new_current_model_record_path, #search_tab_title, #searchable_model?, #tab_title, #to_path

Methods included from RussianCasesHelper

#case_word, #dative, #genitive, #instrumental, #plural

Methods included from AdditionalButtonsBuilder

#build_buttons

Instance Method Details

#object_type(object) ⇒ Object



15
16
17
# File 'app/helpers/tramway/admin/application_helper.rb', line 15

def object_type(object)
  ::Tramway::Admin.available_models_for(@application_engine || @application.name).map(&:to_s).include?(object.class.name) ? :record : :singleton
end