diff --git a/lib/cequel/model/readable_dictionary.rb b/lib/cequel/model/readable_dictionary.rb index 579c83a..a3335a0 100644 --- a/lib/cequel/model/readable_dictionary.rb +++ b/lib/cequel/model/readable_dictionary.rb @@ -106,6 +106,10 @@ def load(*keys) fully_load_scope(column_family.where(key_alias.to_s => keys)) end + def limit_with_where(limit, args) + fully_load_scope(column_family.limit(limit).where(*args)) + end + private def fully_load_scope(scope)