Class: ActiveAdmin::Chat::Application
- Inherits:
-
Object
- Object
- ActiveAdmin::Chat::Application
- Defined in:
- lib/active_admin/chat/application.rb
Instance Attribute Summary collapse
-
#admin_user_model_name ⇒ Object
Returns the value of attribute admin_user_model_name.
-
#conversation_model_name ⇒ Object
Returns the value of attribute conversation_model_name.
-
#message_model_name ⇒ Object
Returns the value of attribute message_model_name.
-
#messages_per_page ⇒ Object
Returns the value of attribute messages_per_page.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#page_name ⇒ Object
Returns the value of attribute page_name.
-
#user_model_name ⇒ Object
Returns the value of attribute user_model_name.
Instance Method Summary collapse
-
#initialize ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
7 8 9 10 11 12 13 14 |
# File 'lib/active_admin/chat/application.rb', line 7 def initialize @conversation_model_name = 'conversation' = 'message' @admin_user_model_name = 'admin_user' @user_model_name = 'user' @namespace = 'admin' = 25 end |
Instance Attribute Details
#admin_user_model_name ⇒ Object
Returns the value of attribute admin_user_model_name.
4 5 6 |
# File 'lib/active_admin/chat/application.rb', line 4 def admin_user_model_name @admin_user_model_name end |
#conversation_model_name ⇒ Object
Returns the value of attribute conversation_model_name.
4 5 6 |
# File 'lib/active_admin/chat/application.rb', line 4 def conversation_model_name @conversation_model_name end |
#message_model_name ⇒ Object
Returns the value of attribute message_model_name.
4 5 6 |
# File 'lib/active_admin/chat/application.rb', line 4 def end |
#messages_per_page ⇒ Object
Returns the value of attribute messages_per_page.
4 5 6 |
# File 'lib/active_admin/chat/application.rb', line 4 def end |
#namespace ⇒ Object
Returns the value of attribute namespace.
4 5 6 |
# File 'lib/active_admin/chat/application.rb', line 4 def namespace @namespace end |
#page_name ⇒ Object
Returns the value of attribute page_name.
4 5 6 |
# File 'lib/active_admin/chat/application.rb', line 4 def page_name @page_name end |
#user_model_name ⇒ Object
Returns the value of attribute user_model_name.
4 5 6 |
# File 'lib/active_admin/chat/application.rb', line 4 def user_model_name @user_model_name end |