Sha256: 6e74d6d7952b0eaef891635006b2c35bd8a4e3076b4c6d3ad4831d5f35bb5ac5
Contents?: true
Size: 286 Bytes
Versions: 11
Compression:
Stored size: 286 Bytes
Contents
module DataAttributeHelper def page_data_attr controller_array = controller.controller_path.split("/").map(&:camelize).join("_") action = controller.action_name.capitalize "data-controller='#{controller_array}' data-action='#{action}'".html_safe end end
Version data entries
11 entries across 11 versions & 1 rubygems