mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-14 13:08:14 +00:00
* svn browsing * diff viewing git-svn-id: http://redmine.rubyforge.org/svn/branches/work@102 e93f8b46-1217-0410-a6f0-8f06a7374b81
12 lines
231 B
Ruby
12 lines
231 B
Ruby
class Repository < ActiveRecord::Base
|
|
belongs_to :project
|
|
validates_presence_of :url
|
|
validates_format_of :url, :with => /^(http|https|svn):\/\/.+/i
|
|
|
|
@scm = nil
|
|
|
|
def scm
|
|
@scm ||= SvnRepos::Base.new url
|
|
end
|
|
end
|