| Module | ActionView::Helpers::FormHelper |
| In: |
lib/haml/helpers/action_view_mods.rb
|
| form_for | -> | form_for_without_haml |
# File lib/haml/helpers/action_view_mods.rb, line 156
156: def form_for_with_haml(object_name, *args, &proc)
157: if block_given? && is_haml?
158: oldproc = proc
159: proc = haml_bind_proc do |*args|
160: tab_up
161: oldproc.call(*args)
162: tab_down
163: concat haml_indent
164: end
165: concat haml_indent
166: end
167: form_for_without_haml(object_name, *args, &proc)
168: concat "\n" if block_given? && is_haml?
169: end