module Selectivizr
  module Rails
    class Engine < ::Rails::Engine
      if Rails.version >= '3.1'
        initializer 'Selectivizr precompile hook', :group => :all do |app|
          app.config.assets.precompile += ['modernizr.js']
        end
      end
    end
  end
end

module Selectivizr
  module Rails
    class Engine < ::Rails::Engine
      initializer 'Selectivizr precompile hook', :group => :all do |app|
        app.config.assets.precompile += ['modernizr.js']
      end
    end
  end
end

Remove the rails 3.1 version check.
Remove the rails 3.1 version check.

There is really no reason to use this gem unless
you're already on 3.1, so don't bother checking.