You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From our code base. This is the actual example that trigged this issue
defrenderdivdobutton(params.attributes.merge({id: "#{job.finishing.id}_trigger_button"}))do# fixing this would allow us to write: # button(params.attributes, id: "#{job.finishing.id}_trigger_button")"Advanced Options"end.on(:click)doElement["#finishing_options_modal"].modal('show')enddialog_boxendifhas_advanced_options?end
once you allow the first parameter to be a hash to be merged with the rest, you might as well generalize and allow any combination of hashes, and strings.
for example
should be the same as
Why? because sometimes you have a ready made set of params (i.e. attributes passed to a component) and you want to merge in others.
this is how you process the attributes (i just wanted to make sure it would work)
The text was updated successfully, but these errors were encountered: