Sha256: a08572de8f41aa9cb5f2ff5ec391c7cf9e68fae2ed6da9ecf83555833d11d80c
Contents?: true
Size: 578 Bytes
Versions: 17
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true module ActiveAdmin module ViewHelpers module FormHelper def active_admin_form_for(resource, options = {}, &block) Arbre::Context.new({}, self) do active_admin_form_for resource, options, &block end.content end def hidden_field_tags_for(params, options = {}) fields_for_params(params.to_unsafe_hash, options).map do |kv| k, v = kv.first hidden_field_tag k, v, id: sanitize_to_id("hidden_active_admin_#{k}") end.join("\n").html_safe end end end end
Version data entries
17 entries across 17 versions & 1 rubygems