[Haml] Make form_for indent properly with Rails beta 3.
This commit is contained in:
parent
a02e696356
commit
1ed29bfeeb
|
@ -3,6 +3,12 @@
|
|||
* Table of contents
|
||||
{:toc}
|
||||
|
||||
## 2.2.24
|
||||
|
||||
[Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.24).
|
||||
|
||||
* Make sure `form_for` blocks are properly indented under Rails 3.0.0.beta.3.
|
||||
|
||||
## 2.2.23
|
||||
|
||||
[Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.23).
|
||||
|
|
|
@ -156,9 +156,7 @@ module ActionView
|
|||
def form_for_with_haml(object_name, *args, &proc)
|
||||
if block_given? && is_haml?
|
||||
oldproc = proc
|
||||
proc = haml_bind_proc do |*args|
|
||||
with_tabs(1) {oldproc.call(*args)}
|
||||
end
|
||||
proc = proc {|*args| with_tabs(1) {oldproc.call(*args)}}
|
||||
end
|
||||
res = form_for_without_haml(object_name, *args, &proc)
|
||||
res << "\n" if block_given? && is_haml?
|
||||
|
|
Loading…
Reference in New Issue