Sha256: 54cfb1000c517ecd56810fd5f5a7df9aa583df57a3ff0aa0f3efc334a8935c3a
Contents?: true
Size: 1.01 KB
Versions: 19
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true module Tramway module Admin module ApplicationHelper include ::FontAwesome5::Rails::IconHelper include AuthManagement include AdditionalButtonsBuilder include CasesHelper include RussianCasesHelper include ::Tramway::Admin::RecordsHelper include ::Tramway::Admin::SingletonHelper include ::Tramway::Admin::NavbarHelper include ::Tramway::Admin::InputsHelper include ::Tramway::Admin::FocusGeneratorHelper include ::Tramway::Collections::Helper def object_type(object) object_class_name = if object.class.ancestors.include? ::Tramway::Core::ApplicationDecorator object.class.model_class.name else object.class.name end ::Tramway::Admin.available_models_for(@application_engine || @application.name).map(&:to_s).include?(object_class_name) ? :record : :singleton end end end end
Version data entries
19 entries across 19 versions & 1 rubygems