Skip to content

Commit

Permalink
Merge pull request heroku#54 from heroku/rails3-detect-file-encoding
Browse files Browse the repository at this point in the history
Rails3.use?: use String#include? instead of =~
  • Loading branch information
hone committed Jan 22, 2013
2 parents 0422bc8 + 26dfef8 commit 8137a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/language_pack/rails3.rb
Expand Up @@ -8,7 +8,7 @@ class LanguagePack::Rails3 < LanguagePack::Rails2
def self.use?
super &&
File.exists?("config/application.rb") &&
File.read("config/application.rb") =~ /Rails::Application/
File.read("config/application.rb").include?("Rails::Application")
end

def name
Expand Down

0 comments on commit 8137a21

Please sign in to comment.