lib/kasket/select_manager_mixin.rb in kasket-3.1.4 vs lib/kasket/select_manager_mixin.rb in kasket-3.1.5

- old
+ new

@@ -20,10 +20,10 @@ if query[:index].size > 1 && query[:attributes].any? { |attribute, value| value.is_a?(Array) } return nil end query[:key] = klass.kasket_key_for(query[:attributes]) - query[:key] << '/first' if query[:limit] == 1 && query[:index] != [:id] + query[:key] << '/first' if query[:limit] == 1 && !query[:index].include?(:id) query end end end