Skip to content

Commit

Permalink
Merge pull request #29 from krupenik/master
Browse files Browse the repository at this point in the history
Railtie fixed for Rails4 (broken Rails.version.to_f comparison)
  • Loading branch information
leogalmeida committed Mar 25, 2013
2 parents 8cdfaca + ea9de06 commit 6faae95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slim-rails.rb
Expand Up @@ -4,7 +4,7 @@
module Slim
module Rails
class Railtie < ::Rails::Railtie
if ::Rails.version.to_f >= 3.1
if ::Rails.version.to_s >= '3.1'
config.app_generators.template_engine :slim
else
config.generators.template_engine :slim
Expand Down

0 comments on commit 6faae95

Please sign in to comment.