Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (28 sloc) 0.726 kb
11771c5 @ddollar initial copy from slugc
ddollar authored
1 require "language_pack"
2 require "language_pack/rails2"
3
4 class LanguagePack::Rails3 < LanguagePack::Rails2
5
6 def self.use?
7 super &&
8 File.exists?("config/application.rb") &&
9 File.read("config/application.rb") =~ /Rails::Application/
10 end
11
12 def name
13 "Rails"
14 end
15
16 def default_process_types
17 web_process = gem_is_bundled?("thin") ?
18 "bundle exec thin start -R config.ru -e $RAILS_ENV -p $PORT" :
19 "bundle exec rails server -p $PORT"
20
21 super.merge({
22 "web" => web_process,
23 "console" => "bundle exec rails console"
24 })
25 end
26
27 def compile
28 super
29 end
30
31 private
32
33 def plugins
34 super.concat(%w( rails3_serve_static_assets )).uniq
35 end
36
37 end
38
Something went wrong with that request. Please try again.