<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+8/27/08 - Support for from_param [Mike Gunderloy]
+
 8/15/08 - Support for nested resources. [Matthew Bass]
 
 8/14/08 - Optional before filter prepending. [Steve Mohapi-Banks]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -98,6 +98,12 @@ This can be easily handled using finder_filter:
 
   finder_filter :nested =&gt; :topic
 
+== from_param
+
+If you have Michael Bleigh's from_param (http://github.com/mbleigh/from_param/tree/master)
+installed, finder_filter will work transparently with it. This gives you the dual benefit
+of SEO-friendly URLs and DRY controller code.
+
 == Tests
 
 To run the tests, you must have the mocha and test-spec gems installed.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -14,12 +14,24 @@ module FinderFilter
       if nested
         nested_klass = nested.to_s.classify.constantize
         nested_param = &quot;#{nested}_id&quot;.intern
-                
-        nested_item = by ? nested_klass.send(&quot;find_by_#{by}&quot;, params[nested_param]) : nested_klass.find(params[nested_param])
-        item = by ? nested_item.send(name.to_s.pluralize).send(&quot;find_by_#{by}&quot;, params[param]) : nested_item.send(name.to_s.pluralize).find(params[param])
+        
+        if nested_klass.send(&quot;param_column&quot;)
+          nested_item = nested_klass.from_param(params[nested_param])
+        else
+          nested_item = by ? nested_klass.send(&quot;find_by_#{by}&quot;, params[nested_param]) : nested_klass.find(params[nested_param])
+        end
+        if klass.send(&quot;param_column&quot;)
+          item = nested_item.send(name.to_s.pluralize).from_param(params[param])
+        else
+          item = by ? nested_item.send(name.to_s.pluralize).send(&quot;find_by_#{by}&quot;, params[param]) : nested_item.send(name.to_s.pluralize).find(params[param])
+        end
         instance_variable_set(&quot;@#{nested}&quot;, nested_item)
       else
-        item = by ? klass.send(&quot;find_by_#{by}&quot;, params[param]) : klass.find(params[param])
+        if klass.send(&quot;param_column&quot;)
+          item = klass.from_param(params[param])
+        else
+          item = by ? klass.send(&quot;find_by_#{by}&quot;, params[param]) : klass.find(params[param])
+        end
       end
       instance_variable_set(&quot;@#{name}&quot;, item)
     end</diff>
      <filename>lib/finder_filter.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1bca5ad7a0910eeb21e5fd634acf7f5080cb0616</id>
    </parent>
  </parents>
  <author>
    <name>Mike Gunderloy</name>
    <email>MikeG1@larkfarm.com</email>
  </author>
  <url>http://github.com/ffmike/finder_filter/commit/fb9e16ce648ee796e4777e63b516d9548af9132e</url>
  <id>fb9e16ce648ee796e4777e63b516d9548af9132e</id>
  <committed-date>2008-08-27T11:28:00-07:00</committed-date>
  <authored-date>2008-08-27T11:28:00-07:00</authored-date>
  <message>Added automatic from_param support. Needs test coverage.</message>
  <tree>1e41b488c9dac66c1e0df5cbed5bef3ee22ee1af</tree>
  <committer>
    <name>Mike Gunderloy</name>
    <email>MikeG1@larkfarm.com</email>
  </committer>
</commit>
