<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,11 +17,15 @@ module Ardes
         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
-        methods_to_remove(options).each {|m| mixin.send(:undef_method, m)}
+        actions_to_remove(options).each {|a| mixin.remove_action(a) }
         controller.send :include, mixin
       end
       
-      def methods_to_remove(options = {})
+      def remove_action(action)
+        undef_method action
+      end
+      
+      def actions_to_remove(options = {})
         if options[:only]
           instance_methods - options[:only].map(&amp;:to_s)
         elsif options[:except]</diff>
      <filename>lib/ardes/resources_controller/include_actions.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aa2c6e2d266bfa800fd00215a6a9cb125c76449d</id>
    </parent>
  </parents>
  <author>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </author>
  <url>http://github.com/ianwhite/resources_controller/commit/144de668978ff5345f04c1842815b115dc055789</url>
  <id>144de668978ff5345f04c1842815b115dc055789</id>
  <committed-date>2008-10-09T20:53:47-07:00</committed-date>
  <authored-date>2008-10-09T20:53:47-07:00</authored-date>
  <message>renaming methods in IncludeActions for clarity</message>
  <tree>861c8511be80d0f86a2fe7c39fb03444c6ff60a7</tree>
  <committer>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </committer>
</commit>
