You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`Conversation` and `Message` models and migrations.
26
-
- Initializer that configures the model names for conversation, message, admin user and user
27
-
- Default chat page
33
+
- Initializer that configures the model names for conversation, message, admin user and user.
34
+
- Default chat page.
28
35
29
36
You can customize the namings of the models when installing ActiveAdminChat with the usage of the `--conversation_model_name`, `--message_model_name`, `--admin_user_model_name` and `--user_model_name` flags.
30
37
@@ -48,6 +55,9 @@ And including of JS to `app/assets/javascripts/active_admin.js`:
All you need to get the chat up and running is to authenticate your users in the websocket connection in `app/channels/application_cable/connection.rb`. It's important that you identify them as the `current_user` here, this will be used by the gem internally.
53
63
@@ -117,11 +127,6 @@ ActiveAdmin.register_chat User do
117
127
end
118
128
```
119
129
120
-
## Prerequisites
121
-
- It assumes you have models for your admins and users in place.
122
-
- It assumes that your users have an `email` attribute.
123
-
- For production you need to configure ActionCable by providing it with a Redis or Postgres connection in `config/cable.yml`.
124
-
125
130
## Contributing
126
131
Bug reports (please use Issues) and pull requests are welcome on GitHub at https://github.com/rootstrap/active_admin_chat. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
0 commit comments