def static_record_lookup_key(value)#:nodoc:
      if value.is_a? self
        static_record_lookup_key(
          value.send(
            acts_as_static_record_options[:lookup_key] ||
            acts_as_static_record_options[:key] ||
            primary_key
          )
        )
      else
        value.to_s.gsub(' ', '_').gsub(/\W/, "").underscore
      end
    end
def static_record_lookup_key(value)#:nodoc:
      if value.is_a? self
        static_record_lookup_key(
          value.send(
            acts_as_static_record_options[:lookup_key] ||
            acts_as_static_record_options[:key] ||
            primary_key
          )
        )
      else
        value.to_s.gsub(' ', '_').gsub(/\W/, "").underscore
      end
    end
Parse the lookup key