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

[Haml] Automatically enable :ugly in production on Rails.

This commit is contained in:
Nathan Weizenbaum 2009-07-04 18:14:15 -07:00
parent 5760e12384
commit b4df815fdf

View file

@ -14,6 +14,10 @@ module Haml
end
end
if defined?(RAILS_ENV) && RAILS_ENV == "production"
Haml::Template.options[:ugly] = true
end
# Decide how we want to load Haml into Rails.
# Patching was necessary for versions <= 2.0.1,
# but we can make it a normal handler for higher versions.