<commit_before>class Customer < ActiveRecord::Base
  
  has_one_custom :address, :conditions=>proc{ {:customer_number=>customer_number} }
    
end<commit_msg>reimplement has_one_custom for Rails 3.2<commit_after>class Customer < ActiveRecord::Base
  
  has_one_custom :address,
    :joins=>['INNER JOIN customer_addresses ON customer_addresses.address_id = addresses.id'],
    :conditions=>proc{ {:'customer_addresses.customer_number'=>customer_number} }
    
end
{'fraction_non_alphanumeric': 0.1101511879049676, 'fraction_numerical': 0.004319654427645789, 'mean_word_length': 6.483870967741935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6519557', 'n_tokens_mistral': 144, 'n_tokens_neox': 140, 'n_words': 25}