Commit e4462cf52ecb8c624a00910ccbfef38ddddf8118

fixed version check

* should be a greater than (>) instead of less than (<).
* removed the silly stuff, comparing the string just works.

Commit diff

lib/git-rails/commands/init.rb

 
7070 def sqlite_by_default
7171 begin
7272 require 'config/boot.rb'
73 # TODO: Make this less nasty.
74 rails_version = Rails::VERSION::STRING.scan(/(\d)/).flatten.to_s.to_i
75 rails_version <= 202
73 Rails::VERSION::STRING >= "2.0.2"
7674 rescue LoadError
7775 true
7876 end
toggle raw diff