tophold_engine 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,9 +13,19 @@ module Sunspot
13
13
  extend Sunspot::Rails::Searchable::ActsAsMethods
14
14
  Sunspot::Adapters::DataAccessor.register(DataAccessor, base)
15
15
  Sunspot::Adapters::InstanceAdapter.register(InstanceAdapter, base)
16
+
16
17
  after_save do
17
18
  Sunspot.index! self
18
19
  end
20
+
21
+ after_delete do
22
+ Sunspot.remove! self
23
+ end
24
+
25
+ after_destroy do
26
+ Sunspot.remove! self
27
+ end
28
+
19
29
  end
20
30
  end
21
31
 
@@ -1,3 +1,3 @@
1
1
  module TopholdEngine
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tophold_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: