mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
private method is not needed
This commit is contained in:
@@ -45,7 +45,7 @@ module ActiveSupport
|
||||
|
||||
def publish(*args)
|
||||
return unless subscribed_to?(args.first)
|
||||
push(*args)
|
||||
@block.call(*args)
|
||||
true
|
||||
end
|
||||
|
||||
@@ -58,19 +58,9 @@ module ActiveSupport
|
||||
end
|
||||
|
||||
def matches?(subscriber_or_name)
|
||||
case subscriber_or_name
|
||||
when String
|
||||
self === subscriber_or_name ||
|
||||
@pattern && @pattern === subscriber_or_name
|
||||
when self
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def push(*args)
|
||||
@block.call(*args)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user