lib/mack/view_helpers/form_helpers.rb in mack-0.7.1.1 vs lib/mack/view_helpers/form_helpers.rb in mack-0.8.0
- old
+ new
@@ -42,10 +42,10 @@
meth = "<input name=\"_method\" type=\"hidden\" value=\"#{options[:method]}\" />\n"
options[:method] = :post
end
concat("<form#{build_options(options)}>\n", block.binding)
concat(meth, block.binding) unless meth.blank?
- concat(form_authenticity_field, block.binding) if !app_config.mack.disable_forgery_detector
+ concat(form_authenticity_field, block.binding) unless configatron.mack.disable_forgery_detector
yield
concat("\n</form>", block.binding)
# content_tag(:form, options, &block)
end
\ No newline at end of file