CHG: use `Rails::VERSION:MAJOR` instead of `Rails.version.to_i` because there version string like "4.0.0.beta1"