Created
June 29, 2010 19:28
-
-
Save danlynn/457678 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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