lib/active_admin/reform/forms.rb
# Wrap resource into Reform::Form if needed
# @param resource [ActiveRecord::Base]
# @return [ActiveRecord::Base, Reform::Form]
Wrap resource into Reform::Form if needed
Wrap resource into Reform :: Form if needed
def apply_form(resource)
        if apply_form?
          form = form_class.new(resource)
          form.prepopulate! if prepopulate_form?
          form
        else
          resource
        end
      end
def apply_form ( resource ) if apply_form? form = form_class . new ( resource ) form . prepopulate! if prepopulate_form? form else resource end end
Wrap resource into Reform::Form if needed
Wrap resource into Reform :: Form if needed
None
ActiveRecord::Base, Reform::Form
resource
None