<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ require 'shoulda/active_record'
 module StripAttributes
   module Macros
     def should_strip_attributes(*attributes)
-      klass = model_class
+      klass = respond_to?(:described_type) ? described_type : model_class
       attributes.each do |attribute|
         attribute = attribute.to_sym
         should &quot;strip whitespace from #{attribute}&quot; do
@@ -16,7 +16,7 @@ module StripAttributes
     end
 
     def should_not_strip_attributes(*attributes)
-      klass = model_class
+      klass = respond_to?(:described_type) ? described_type : model_class
       attributes.each do |attribute|
         attribute = attribute.to_sym
         should &quot;not strip whitespace from #{attribute}&quot; do</diff>
      <filename>shoulda_macros/macros.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>007a2d721fa2329bdf06d1478630915f1d8e2fd8</id>
    </parent>
  </parents>
  <author>
    <name>Ryan McGeary</name>
    <email>ryanongit@mcgeary.org</email>
  </author>
  <url>http://github.com/rmm5t/strip_attributes/commit/e61f0a9dadd0273fc0fbaf9aba7ecd3d50b36431</url>
  <id>e61f0a9dadd0273fc0fbaf9aba7ecd3d50b36431</id>
  <committed-date>2009-07-26T21:16:18-07:00</committed-date>
  <authored-date>2009-07-26T21:16:18-07:00</authored-date>
  <message>Fixed macros for latest versions of shoulda</message>
  <tree>295d861348fa231d2dd6ecfa370ff6a53cbcc124</tree>
  <committer>
    <name>Ryan McGeary</name>
    <email>ryanongit@mcgeary.org</email>
  </committer>
</commit>
