Replace use of :finder_sql and :counter_sql deprecated in Rails 4.1, use an association extension.
use proxy assoc to get id
Merge pull request #2 from zachgraves/rails4.1

Use association extension for has_many subject association