Module: ActiveAdmin::Chat::ChatHelper
- Defined in:
- app/helpers/active_admin/chat/chat_helper.rb
Instance Method Summary collapse
Instance Method Details
#admin_class(message) ⇒ Object
4 5 6 |
# File 'app/helpers/active_admin/chat/chat_helper.rb', line 4 def admin_class() 'admin' if .sender.class == ActiveAdmin::Chat.admin_user_klass end |
#selected_class(conversation, active_conversation) ⇒ Object
8 9 10 |
# File 'app/helpers/active_admin/chat/chat_helper.rb', line 8 def selected_class(conversation, active_conversation) 'selected' if active_conversation && active_conversation == conversation end |