Skip to content

Commit e51fc32

Browse files
committed
Merge pull request rails#120 from robertomiranda/version-to-s
Add #to_s method to rails version on install Generator
2 parents b546434 + e0b03fd commit e51fc32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/jquery/install/install_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'rails'
22

33
# Supply generator for Rails 3.0.x or if asset pipeline is not enabled
4-
if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
4+
if ::Rails.version.to_s < "3.1" || !::Rails.application.config.assets.enabled
55
module Jquery
66
module Generators
77
class InstallGenerator < ::Rails::Generators::Base

0 commit comments

Comments
 (0)