1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

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

This commit is contained in:
Jeff Casimir 2011-07-11 19:58:12 -04:00
parent b537f98ef5
commit d50aefe2f8
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ module Draper
def initialize(subject)
subject.inspect
self.source_class = subject.class
self.class.source_class = subject.class
self.source = subject
build_methods
end

View file

@ -1,3 +1,3 @@
module Draper
VERSION = "0.3.5"
VERSION = "0.4.0"
end