plataformatec/simple_form — pull request #898 by heaven (2013-09-30 18:58:26+00:00)
Title: #897: Add compatibility with Rails 4 associations

Depending of the rails version it will either use previous options[:conditions] in rails 3 or use reflection.scope in rails 4