]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/init.c
ruby: add keyword arguments to db.query
[notmuch] / bindings / ruby / init.c
index bedfbf60646cf4d2d4c4ebc209ea0e2c145faece..d421c6010dc4fddb21c6e081829a0403e1643df1 100644 (file)
@@ -275,7 +275,7 @@ Init_notmuch (void)
     rb_define_method (notmuch_rb_cDatabase, "find_message_by_filename",
                      notmuch_rb_database_find_message_by_filename, 1); /* in database.c */
     rb_define_method (notmuch_rb_cDatabase, "all_tags", notmuch_rb_database_get_all_tags, 0); /* in database.c */
-    rb_define_method (notmuch_rb_cDatabase, "query", notmuch_rb_database_query_create, 1); /* in database.c */
+    rb_define_method (notmuch_rb_cDatabase, "query", notmuch_rb_database_query_create, -1); /* in database.c */
 
     /*
      * Document-class: Notmuch::Directory