mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Remove unused/unusable unsubscribe since we don't want to unsubscribe
In 0.9 (which this implementation is based on), the instrumentation was `!serialize.active_model_serializers`. https://github.com/rails-api/active_model_serializers/pull/596/ The '!' in the event name meant the event wasn't meant for production. https://github.com/rails/rails/pull/10446/files#r4075679 Since we intend the event for production and have a log subscriber, if we unsubscribe from `render.active_model_serializers`, we'll break other tests that are relying on that event being subscribed.
This commit is contained in:
parent
ef09c9043f
commit
f59431439d
@ -69,10 +69,6 @@ module ActiveModelSerializers
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def unsubscribe
|
|
||||||
ActiveSupport::Notifications.unsubscribe(event_name)
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def matches_class?
|
def matches_class?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user