fix default_scope in rails 4.1