Skip to content

Instantly share code, notes, and snippets.

@danlynn
Created June 29, 2010 19:28
Show Gist options
  • Select an option

  • Save danlynn/457678 to your computer and use it in GitHub Desktop.

Select an option

Save danlynn/457678 to your computer and use it in GitHub Desktop.
class Source < ActiveRecord::Base
belongs_to :owner
def self.create_from_pathname(pathname)
source = Source.new({:path => "", :tracename => ""})
end
private
# call-seq
# get_owner_and_last_commit_from_svn_log(Pathname("path/to/source.java")) => owner_name, commit_date
#
# if 'pathname' doesn't exist or there is no commit history then returns nil
self.def get_owner_and_last_commit_from_svn_log(pathname)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment