lib/dato/local/items_repo.rb in dato-0.6.15 vs lib/dato/local/items_repo.rb in dato-0.6.16

- old
+ new

@@ -135,10 +135,10 @@ method = item_type_methods[item_type] if !item_type.singleton && item_type.sortable @collections_by_type[method].sort_by!(&:position) elsif item_type.ordering_field @collections_by_type[method].sort_by! do |item| - item.send(item_type.ordering_field.api_key) + item[item_type.ordering_field.api_key] end if item_type.ordering_direction == 'desc' @collections_by_type[method].reverse! end end