diff --git a/lib/active_groonga/base.rb b/lib/active_groonga/base.rb index 5d98568..da12a51 100644 --- a/lib/active_groonga/base.rb +++ b/lib/active_groonga/base.rb @@ -135,7 +135,8 @@ def select(options={}) records = table.select do |record| yield(record) end - create_result_set(records, :expression => records.expression) + create_result_set(records, + options.merge(:expression => records.expression)) end def all(options={})