lib/relaxo/model/properties/composite.rb in relaxo-model-0.4.2 vs lib/relaxo/model/properties/composite.rb in relaxo-model-0.4.3
- old
+ new
@@ -71,10 +71,10 @@
class BelongsTo
def self.[] *klasses
if klasses.size == 1
self.new(klasses[0])
else
- Polymorphic.new(*klasses)
+ Polymorphic.new(klasses)
end
end
def initialize(klass)
@klass = klass