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:
parent
5760e12384
commit
b4df815fdf
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue