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 160 160: def form_for_with_haml(object_name, *args, &proc) 161: if block_given? && is_haml? 162: oldproc = proc 163: proc = haml_bind_proc do |*args| 164: tab_up 165: oldproc.call(*args) 166: tab_down 167: concat haml_indent 168: end 169: concat haml_indent 170: end 171: form_for_without_haml(object_name, *args, &proc) 172: concat "\n" if block_given? && is_haml? 173: end