module Ransack::Helpers::FormHelper

def parse_record(object)

def parse_record(object)
  return object.klass if object.is_a?(Ransack::Search)
  object
end