noticed 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa6eead89c27a33bfd18b269a8f028ce38b279a43b27fd2772e6b505348dc807
4
- data.tar.gz: 50c32b94efd6271ad092a931bcfb5b4fd14900d1d6c378216c00e8922e49ac9f
3
+ metadata.gz: c931d83df9cb1ea75523c8bddb11f13c304f45f85786ddd9406c0b08773d32c1
4
+ data.tar.gz: b913c37077db560a3bbe510489b479e5033265dc681eb1fe54d808948a5a3aeb
5
5
  SHA512:
6
- metadata.gz: 89a47722584ee575fe706c3c51db5bbadacfd42433d409ce0d4ae42b5c1ded509bd2bc2e440a7c0f43d765e1b5576a5880fec772056ad00647b351d2c64a9465
7
- data.tar.gz: a42f0093090618f0ef85444d39867583b6d4eba7c895170a5035a9343ffcfaac592a0d837423b428d6c18304d6b47e894d329bfd3d721e8a7fdd7ab8fe98f980
6
+ metadata.gz: 24eac254a38a2c643b2bcf7bfa3610ade740e06469640b606e95b2d368fd375b8702346cb1f3ab20b1fe3f3e5b56f0edfd8378965c1f4fcf156cb376a199a8d3
7
+ data.tar.gz: ea0885d7eb978563373ba88920e42481d0f5efcec63ac0ffb9844ce7bc047cb8ec7e0e0af00e5baf1b3ebe119c5012045955dd057fd14bf894b7a71d4551b8f9
@@ -6,17 +6,6 @@ module Noticed
6
6
  class_attribute :bulk_delivery_methods, instance_writer: false, default: {}
7
7
  class_attribute :delivery_methods, instance_writer: false, default: {}
8
8
  class_attribute :required_param_names, instance_writer: false, default: []
9
-
10
- attribute :params, default: {}
11
-
12
- # Ephemeral notifiers cannot serialize params since they aren't ActiveRecord backed
13
- if respond_to? :serialize
14
- if Rails.gem_version >= Gem::Version.new("7.1.0.alpha")
15
- serialize :params, coder: Coder
16
- else
17
- serialize :params, Coder
18
- end
19
- end
20
9
  end
21
10
 
22
11
  class_methods do
@@ -11,5 +11,16 @@ module Noticed
11
11
  accepts_nested_attributes_for :notifications
12
12
 
13
13
  scope :newest_first, -> { order(created_at: :desc) }
14
+
15
+ attribute :params, :json, default: {}
16
+
17
+ # Ephemeral notifiers cannot serialize params since they aren't ActiveRecord backed
18
+ if respond_to? :serialize
19
+ if Rails.gem_version >= Gem::Version.new("7.1.0.alpha")
20
+ serialize :params, coder: Coder
21
+ else
22
+ serialize :params, Coder
23
+ end
24
+ end
14
25
  end
15
26
  end
@@ -1,3 +1,3 @@
1
1
  module Noticed
2
- VERSION = "2.3.1"
2
+ VERSION = "2.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noticed
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-24 00:00:00.000000000 Z
11
+ date: 2024-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails