Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
added default contest
Commit Description:
added default contest
plugin_root = File . join ( File . dirname ( __FILE__ ), '..' )
version = ENV [ 'RAILS_VERSION' ]
version = nil if version and version == ""
# first look for a symlink to a copy of the framework
if ! version and framework_root = [ " #{ plugin_root } /rails" , " #{ plugin_root } /../../rails" ]. find { | p | File . directory? p }
puts "found framework root: #{ framework_root } "
# this allows for a plugin to be tested outside of an app and without Rails gems
$: . unshift " #{ framework_root } /activesupport/lib" , " #{ framework_root } /activerecord/lib" , " #{ framework_root } /actionpack/lib"
else
# simply use installed gems if available
puts "using Rails #{ version ? ' ' + version : nil } gems"
require 'rubygems'
if version
gem 'rails' , version
else
gem 'actionpack'
gem 'activerecord'
end
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings