Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add event type to file import

  • Loading branch information...
commit 30f306a275808b2c9f4411db416d2c6a5eff8f8f 1 parent f10e771
@rwdaigle authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/gist_file.rb
View
4 app/models/gist_file.rb
@@ -19,12 +19,12 @@ def import(gh_gist)
}
if(existing_file = where(gist_id: gist.id, filename: gh_file.filename).first)
- log({ns: self, fn: __method__}, gist, existing_file)
+ log({ns: self, fn: __method__, at: "gist-file-updated"}, gist, existing_file)
existing_file.update_attributes(attributes)
existing_file
else
new_file = create(attributes)
- log({ns: self, fn: __method__}, gist, new_file)
+ log({ns: self, fn: __method__, at: "gist-file-created"}, gist, new_file)
new_file
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.