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
|
|