Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bring up Pusher#inspect from private scope

  • Loading branch information...
commit f17ec5fc0460c085dafd1d84dee45eeefbda5da7 1 parent 255483f
@qrush qrush authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 app/models/pusher.rb
View
12 app/models/pusher.rb
@@ -56,6 +56,12 @@ def find
end
end
+ # Overridden so we don't get megabytes of the raw data printing out
+ def inspect
+ attrs = [:@rubygem, :@user, :@message, :@code].map { |attr| "#{attr}=#{instance_variable_get(attr) || 'nil'}" }
+ "<Pusher #{attrs.join(' ')}>"
+ end
+
private
def after_write
@@ -82,12 +88,6 @@ def self.server_path(*more)
File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'server', *more))
end
- # Overridden so we don't get megabytes of the raw data printing out
- def inspect
- attrs = [:@rubygem, :@user, :@message, :@code].map { |attr| "#{attr}=#{instance_variable_get(attr) || 'nil'}" }
- "<Gemcutter #{attrs.join(' ')}>"
- end
-
def enqueue_web_hook_jobs
jobs = rubygem.web_hooks + WebHook.global
jobs.each do |job|
Please sign in to comment.
Something went wrong with that request. Please try again.