lib/voom/presenters/dsl/components/event.rb in voom-presenters-0.1.11 vs lib/voom/presenters/dsl/components/event.rb in voom-presenters-0.1.12
- old
+ new
@@ -10,14 +10,15 @@
@event = attribs.delete(:event)
@actions = []
expand!
end
- def loads(presenter=nil, path: nil, **params, &block)
+ def loads(presenter=nil, path: nil, target: nil, **params, &block)
@actions << Components::Action.new(parent: self,
type: :loads,
presenter: presenter,
path: path,
+ target: target,
params: params, &block)
end
def replaces(target, presenter, **params, &block)
@actions << Components::Action.new(parent: self,