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:
parent
b537f98ef5
commit
d50aefe2f8
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module Draper
|
||||
VERSION = "0.3.5"
|
||||
VERSION = "0.4.0"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue