<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,6 +14,7 @@ module Crummy
         raise ArgumentError, &quot;Cannot pass url and use block&quot; if url &amp;&amp; block_given?
         before_filter(options) do |instance|
           url = yield instance if block_given?
+          url = instance.send url if url.is_a? Symbol
           record = instance.instance_variable_get(&quot;@#{name}&quot;) unless url or block_given?
           if record and record.respond_to? :to_param
             name, url = record.to_s, instance.url_for(record)</diff>
      <filename>lib/crummy.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3ec854c1dc47578e4ff5cc82a7c712dc6fc49a48</id>
    </parent>
  </parents>
  <author>
    <name>xjunior</name>
    <email>carlos@milk-it.net</email>
  </author>
  <url>http://github.com/zachinglis/crummy/commit/9c7c4a473b232def05f5dd2b276feb766fa6ddf1</url>
  <id>9c7c4a473b232def05f5dd2b276feb766fa6ddf1</id>
  <committed-date>2008-12-18T14:21:07-08:00</committed-date>
  <authored-date>2008-10-23T05:50:47-07:00</authored-date>
  <message>Allow to use symbols instead of always repeat the instance.send code. Also allow to return a symbol to be converted to URL later.

Signed-off-by: Zach Inglis &lt;zach@lt3media.com&gt;</message>
  <tree>20a18342b7fd6c7d63e32886d28d9730ee8c9959</tree>
  <committer>
    <name>Zach Inglis</name>
    <email>zach@lt3media.com</email>
  </committer>
</commit>
