Skip to content

Commit

Permalink
Handle Rails' use of class.model_name to resolve polymorphic paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasimir committed Jul 11, 2011
1 parent b537f98 commit d50aefe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/draper/base.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/draper/version.rb
@@ -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.