[Haml] Don't attempt to reference ActionPack directly.

Closes gh-186
This commit is contained in:
Nathan Weizenbaum 2010-06-01 13:39:17 -07:00
parent d80d28285f
commit c95c7060f6
3 changed files with 9 additions and 1 deletions

View File

@ -3,6 +3,10 @@
* Table of contents
{:toc}
## 3.0.8 (Unreleased)
* Fix a bug with Rails versions prior to Rails 3.
## 3.0.7
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.7).

View File

@ -3,6 +3,10 @@
* Table of contents
{:toc}
## 3.0.8 (Unreleased)
* Fix a bug with Rails versions prior to Rails 3.
## 3.0.7
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.7).

View File

@ -46,7 +46,7 @@ unless Haml::Util.rails_env == "development"
Haml::Template.options[:ugly] ||= true
end
if ActionPack::VERSION::MAJOR >= 3
if Haml::Util.ap_geq_3?
Haml::Template.options[:format] ||= :html5
end