lib/magicka/aggregator.rb in magicka-0.5.3 vs lib/magicka/aggregator.rb in magicka-0.5.4
- old
+ new
@@ -6,12 +6,12 @@
# Class representing an element agregator, representing a model
class Aggregator
autoload :MethodBuilder, 'magicka/aggregator/method_builder'
class << self
- def with_element(element_class, method_name = nil)
+ def with_element(element_class, method_name = nil, template: nil)
MethodBuilder
- .new(self, element_class, method_name)
+ .new(self, element_class, method_name, template: template)
.prepare
.build
end
end