lib/voom/presenters/dsl/components/snackbar.rb in voom-presenters-0.1.13 vs lib/voom/presenters/dsl/components/snackbar.rb in voom-presenters-0.2.0
- old
+ new
@@ -9,12 +9,12 @@
super(type: :snackbar, **attribs_, &block)
@text = attribs.delete(:text)
expand!
end
- def action(text=nil, **params, &block)
+ def action(text=nil, &block)
return @action if locked?
- @action = Action.new(parent: self, text: text, context: params, &block)
+ @action = Action.new(parent: self, text: text, &block)
end
class Action < EventBase
attr_accessor :text