Support for Rails 4

Adding support for `join_association` in Rails 4. API remains exactly the same across versions.