Sutto-perennial 0.2.4.5 → 0.2.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/perennial.rb +1 -1
- data/lib/perennial/dispatchable.rb +6 -0
- metadata +1 -1
data/lib/perennial.rb
CHANGED
@@ -129,6 +129,12 @@ module Perennial
|
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
132
|
+
def delete_handler(handler)
|
133
|
+
return if handler.blank?
|
134
|
+
handler.registered = false if handler.respond_to?(:registered=)
|
135
|
+
Dispatchable.handler_mapping[self].delete(handler)
|
136
|
+
end
|
137
|
+
|
132
138
|
def reloading!
|
133
139
|
handlers = Dispatchable.handler_mapping.delete(self)
|
134
140
|
Dispatchable.reloading_mapping[self.name] = handlers
|