messaged 0.2.0 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83dbe2b802b9185d2eca5133b20a91dcb79d1fc7e4f07d580a80432934ad58e5
|
4
|
+
data.tar.gz: 3d701585998d2d0f07add3122bc78e8ab40366bd880b9f03e4170b84b901433d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e6d9b57b7e4961d1bec9c3c4022b575a5dde1e10703ddc37e83e050e93e094534b144563ea6addc064c4d314dfdda6baacbb09d702185f7da5c3be217f3b022
|
7
|
+
data.tar.gz: 7dfb55ac8c374e6fdd94c4f1bf939fb7c0245a06e96d2f89fc23e25022e36ceb08ea5ebe8884758bea331b79cd64492b4c468b8546161bfe235f2724e803245e
|
@@ -16,12 +16,12 @@ module Messaged
|
|
16
16
|
end
|
17
17
|
belongs_to :messaged_room, optional: true, class_name: 'Messaged::Room'
|
18
18
|
|
19
|
-
has_rich_text :
|
19
|
+
has_rich_text :rich_content
|
20
20
|
validates :content, presence: true
|
21
21
|
|
22
|
-
after_create_commit -> { broadcast_append_later_to ["messages"], target: "messages", partial: "messaged/messages/message" }
|
23
|
-
after_update_commit -> { broadcast_replace_later_to ["messages"], target: "#{dom_id(self)}", partial: "messaged/messages/message" }
|
24
|
-
after_destroy_commit -> { broadcast_remove_to ["messages"] }
|
22
|
+
# after_create_commit -> { broadcast_append_later_to ["messages"], target: "messages", partial: "messaged/messages/message" }
|
23
|
+
# after_update_commit -> { broadcast_replace_later_to ["messages"], target: "#{dom_id(self)}", partial: "messaged/messages/message" }
|
24
|
+
# after_destroy_commit -> { broadcast_remove_to ["messages"] }
|
25
25
|
|
26
26
|
# Messages should default to the person sending them, otherwise
|
27
27
|
# fallback to the chat room, and finally tenant if they exist.
|
data/app/models/messaged/room.rb
CHANGED
@@ -20,6 +20,7 @@ module Messaged
|
|
20
20
|
validates :title, presence: true
|
21
21
|
|
22
22
|
has_many :messaged_messages, dependent: :destroy, class_name: 'Messaged::Message', foreign_key: 'messaged_room_id'
|
23
|
+
has_many :recipients, class_name: Messaged.user_class_name
|
23
24
|
|
24
25
|
# Rooms should default to the person sending them, otherwise
|
25
26
|
# fallback to the chat room, and finally tenant if they exist.
|
@@ -7,7 +7,7 @@
|
|
7
7
|
Messaged.user_class = 'User'
|
8
8
|
|
9
9
|
# This method is used by Messaged controllers and views to fetch the currently signed-in user
|
10
|
-
Messaged.current_user_method = :
|
10
|
+
Messaged.current_user_method = :current_user
|
11
11
|
|
12
12
|
# ==> Multi-tenant Configuration
|
13
13
|
# The name of the class your app uses for your tenants.
|
data/lib/messaged/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: messaged
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cjilbert504, ianrandmckenzie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -73,7 +73,6 @@ files:
|
|
73
73
|
- app/models/messaged/null_user.rb
|
74
74
|
- app/models/messaged/room.rb
|
75
75
|
- app/models/messaged/user_extender.rb
|
76
|
-
- app/views/layouts/messaged/application.html.erb
|
77
76
|
- config/importmap.rb
|
78
77
|
- config/locales/en.yml
|
79
78
|
- config/routes.rb
|