views/mdc/components/actions/snackbar.rb in voom-presenters-0.2.0 vs views/mdc/components/actions/snackbar.rb in voom-presenters-2.0.0
- old
+ new
@@ -1,10 +1,12 @@
module WebClient
module Actions
class Snackbar
+ include Voom::Presenters::WebClient::Helpers::ExpandHash
+
def call(action, *)
# Type, URL, Options, Params (passed into javascript event/action classes)
- [action.type, action.url, action.options.to_h, action.params.to_h]
+ [action.type, action.url, expand_hash(action.options), expand_hash(action.dynamic_params).merge(expand_hash(action.params))]
end
end
end
end