Permalink
Browse files

Handle Rails' use of class.model_name to resolve polymorphic paths

  • Loading branch information...
1 parent b537f98 commit d50aefe2f8cc44759a942d39abe0a76c079edef7 @jcasimir jcasimir committed Jul 11, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/draper/base.rb
  2. +1 −1 lib/draper/version.rb
View
@@ -13,7 +13,7 @@ class Base
def initialize(subject)
subject.inspect
- self.source_class = subject.class
+ self.class.source_class = subject.class
self.source = subject
build_methods
end
View
@@ -1,3 +1,3 @@
module Draper
- VERSION = "0.3.5"
+ VERSION = "0.4.0"
end

0 comments on commit d50aefe

Please sign in to comment.