Permalink
Browse files

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

Closes gh-186
  • Loading branch information...
1 parent d80d282 commit c95c7060f649a385556b51c61f02cd8686fac2c1 @nex3 nex3 committed Jun 1, 2010
Showing with 9 additions and 1 deletion.
  1. +4 −0 doc-src/HAML_CHANGELOG.md
  2. +4 −0 doc-src/SASS_CHANGELOG.md
  3. +1 −1 lib/haml/template.rb
@@ -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).
@@ -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
@@ -46,7 +46,7 @@ def precompiled_method_return_value_with_haml_xss
Haml::Template.options[:ugly] ||= true
end
-if ActionPack::VERSION::MAJOR >= 3
+if Haml::Util.ap_geq_3?
Haml::Template.options[:format] ||= :html5
end

0 comments on commit c95c706

Please sign in to comment.