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:
parent
5c6b98c662
commit
ece801bc5d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue