hey_listen 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hey_listen.rb +1 -0
- data/lib/hey_listen/acts_as_notifiable.rb +13 -0
- data/lib/hey_listen/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb6d1fe117ab85cac0d0f5047e060b4220a69f18
|
4
|
+
data.tar.gz: 65941502a5dc95a4ff95509c9d500cd1ba50e948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e60a62b56251fbd90368eb08a05418a239e71ad3be6a78523eb94bdec9e6e9d0d1a9d2de142b8efecfba97574854831e28241a81ae4ba9db2e46649de77aaa7d
|
7
|
+
data.tar.gz: 0c1aff4a477af1e9a39bc91cd1aa9eee496cc98166e678c8d1d1c251e4c83d5f89d59b4ae94797e6dbb215e504b4b08af116feb7c13e7598eb880b6723527a84
|
data/lib/hey_listen.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
module HeyListen
|
2
|
+
module ActsAsNotifiable
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
module ClassMethods
|
6
|
+
def acts_as_notifiable
|
7
|
+
has_many :notifications, as: :notifiable, class_name: 'HeyListen::Notification', dependent: :destroy
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
ActiveRecord::Base.send :include, HeyListen::ActsAsNotifiable
|
data/lib/hey_listen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hey_listen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Escobedo
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- lib/generators/templates/initializer.rb
|
63
63
|
- lib/generators/templates/notifications.rb
|
64
64
|
- lib/hey_listen.rb
|
65
|
+
- lib/hey_listen/acts_as_notifiable.rb
|
65
66
|
- lib/hey_listen/acts_as_notification_receiver.rb
|
66
67
|
- lib/hey_listen/engine.rb
|
67
68
|
- lib/hey_listen/notifications/base.rb
|