lib/reactor/event.rb in reactor-0.9.0 vs lib/reactor/event.rb in reactor-0.9.1
- old
+ new
@@ -13,10 +13,10 @@
def perform(name, data)
data = data.with_indifferent_access
if data['actor_type']
- actor = data["actor_type"].constantize.find(data["actor_id"])
+ actor = data["actor_type"].constantize.unscoped.find(data["actor_id"])
publishable_event = actor.class.events[name.to_sym]
ifarg = publishable_event[:if] if publishable_event
end
need_to_fire = case ifarg