title: Apply multiple filters JSON API Resources
body: <p>just a simple question which I am unable to figure out. I want to apply multiple filters in <code>rails JsonApiResources</code>. Here's the resources code I've.</p>
  
  <pre><code>      filters :start_date, :end_date, apply: -&gt; (records, value, _options){
          byebug
          time = ' 00:00:00'
          _options[:context][:current_company].documents.where('updated_at &gt; ? AND updated_at &lt; ?',value[0]+time,value[1]+time)
        }
  </code></pre>
  
  <p>This is the url I am calling.</p>
  
  <pre><code>http://localhost:3000/api/v1/dashboard?utf8=%E2%9C%93&amp;filters%5Bstart_date%5D=2017-01-01&amp;filters%5Bend_date%5D=2017-01-01&amp;%5Bwith_tax%5D=0&amp;commit=Search
  </code></pre>
  
  <p>But it doesn't call this code, instead <code>self.records</code> is called. But If I change the code to support only one parameter, let's say <code>:start_date</code> and change <code>filters</code> to <code>filter</code> in the above code and the url, than it will work fine.</p>