acts_as_notifiable 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module ActsAsNotifiable
2
2
  def acts_as_notifiable(options={})
3
- has_many :notifications, as: :notifiable, dependent: :delete_all
3
+ has_many :notifications, as: :notifiable, dependent: :destroy
4
4
 
5
5
  after_create :create_notification
6
6
 
@@ -17,7 +17,7 @@ module ActsAsNotifiable
17
17
  def self.mark_all_noticed_by(user, type=nil, type_id=nil)
18
18
  @notifications = Notification.where(user_id: user.id, notifiable_type: self.to_s)
19
19
  self.polymorphic_queries(type, type_id)
20
- @notifications.delete_all
20
+ @notifications.destroy_all
21
21
  end
22
22
 
23
23
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_notifiable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: