1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Haml] Raise an error if Haml is used with Rails 2.3.6.

This commit is contained in:
Nathan Weizenbaum 2010-05-24 02:23:11 -07:00
parent 5c6b98c662
commit ece801bc5d

View file

@ -3,6 +3,11 @@ require 'haml/engine'
require 'haml/helpers/action_view_mods'
require 'haml/helpers/action_view_extensions'
if defined?(ActionPack::VERSION::STRING) &&
ActionPack::VERSION::STRING == "2.3.6"
raise "Haml does not support Rails 2.3.6. Please upgrade to 2.3.7 or later."
end
module Haml
# The class that keeps track of the global options for Haml within Rails.
module Template