<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,7 +16,7 @@ module Ardes
       def include_actions(controller, options = {})
         options.assert_valid_keys(:only, :except)
         raise ArgumentError, &quot;you can only specify either :except or :only, not both&quot; if options[:only] &amp;&amp; options[:except]
-        mixin = self.dup
+        mixin = self.clone
         action_methods_to_remove(options).each {|a| mixin.remove_action_method(a) }
         controller.send :include, mixin
       end
@@ -36,4 +36,4 @@ module Ardes
       end
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/ardes/resources_controller/include_actions.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8457e5703f7c147a2444da62931841a28e456b31</id>
    </parent>
  </parents>
  <author>
    <name>Tim Pope</name>
    <email>code@tpope.net</email>
  </author>
  <url>http://github.com/ianwhite/resources_controller/commit/60b5f270ba2c22fd24e2a93c8f4468416da75374</url>
  <id>60b5f270ba2c22fd24e2a93c8f4468416da75374</id>
  <committed-date>2008-11-19T17:32:44-08:00</committed-date>
  <authored-date>2008-11-19T17:32:44-08:00</authored-date>
  <message>Use clone to copy class methods in 1.8.7

In Ruby 1.8.7 (but not 1.8.6 or 1.9), Object#dup does not copy an
object's singleton methods.  CUrrently, resources_controller exposes
this difference with a duped module that lacks the included callback of
its original.  This can be worked around by simply invoking #clone
instead, which does not suffer from this problem.</message>
  <tree>fd0d5d2979280fab24f9ce21458ad929b15a3120</tree>
  <committer>
    <name>Tim Pope</name>
    <email>code@tpope.net</email>
  </committer>
</commit>
