<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -63,7 +63,10 @@ module Paperclip
 
     # Returns the underscored, pluralized version of the class name.
     # e.g. &quot;users&quot; for the User class.
-    def class attachment, style
+    # NOTE: The arguments need to be optional, because some tools fetch
+    # all class names. Calling #class will return the expected class.
+    def class attachment = nil, style = nil
+      return super() if attachment.nil? &amp;&amp; style.nil?
       attachment.instance.class.to_s.underscore.pluralize
     end
 </diff>
      <filename>lib/paperclip/interpolations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,10 @@ class InterpolationsTest &lt; Test::Unit::TestCase
     assert_equal RAILS_ENV, Paperclip::Interpolations.rails_env(:attachment, :style)
   end
 
+  should &quot;return the class of the Interpolations module when called with no params&quot; do
+    assert_equal Module, Paperclip::Interpolations.class
+  end
+
   should &quot;return the class of the instance&quot; do
     attachment = mock
     attachment.expects(:instance).returns(attachment)</diff>
      <filename>test/interpolations_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4f9ffb856be76fcc2cc085c919f2fd472593291a</id>
    </parent>
  </parents>
  <author>
    <name>Jon Yurek</name>
    <email>jyurek@thoughtbot.com</email>
  </author>
  <url>http://github.com/thoughtbot/paperclip/commit/7ccefc249ec4b611beaa3cd4d595f786508cdd59</url>
  <id>7ccefc249ec4b611beaa3cd4d595f786508cdd59</id>
  <committed-date>2009-08-21T13:35:18-07:00</committed-date>
  <authored-date>2009-08-21T13:35:18-07:00</authored-date>
  <message>Fixed a bug where #class scanning would error on the Interpolations module</message>
  <tree>e7a776526f74545b919cf3e8142d75fa66e98368</tree>
  <committer>
    <name>Jon Yurek</name>
    <email>jyurek@thoughtbot.com</email>
  </committer>
</commit>
