class Ransack::Helpers::FormBuilder

def label(method, *args, &block)

def label(method, *args, &block)
  options = args.extract_options!
  text = args.first
  i18n = options[:i18n] || {}
  text ||= object.translate(
    method, i18n.reverse_merge(include_associations: true)
    ) if object.respond_to? :translate
  super(method, text, options, &block)
end