Sha256: 346353fac2fdb20026ad9c59529efde393719a4145b05c594cbe064bfdbf2f50
Contents?: true
Size: 338 Bytes
Versions: 20
Compression:
Stored size: 338 Bytes
Contents
module Kaui module ApplicationHelper def tenant_selected? session[:kb_tenant_id].present? end def truncate_class_name(klass, with_abbr = false) splitted = klass.split('.') with_abbr ? splitted.each_with_index.map { |k, idx| idx == splitted.size - 1 ? k : k[0]+'.' }.join : splitted[-1] end end end
Version data entries
20 entries across 20 versions & 1 rubygems