Sha256: 580cefc40dd8ea8732bcdbdcddcbf83b3949521d3800c68ec1dee6c964ea0cdf
Contents?: true
Size: 461 Bytes
Versions: 3
Compression:
Stored size: 461 Bytes
Contents
:ruby scope = options.delete(:scope) data_attributes = { 'acts-as-list-item': true, 'acts-as-list-item-uid': resource.to_param, 'acts-as-list-item-on-drop-target': url_for([:reposition, resource]) } data_attributes['acts-as-list-item-scope'] = "#{scope}-#{resource.send(scope)}" if scope.present? %span.btn.btn-xs.btn-default.acts-as-list-item{ data: data_attributes } %span.glyphicon.glyphicon-sort.fas.fa-sort
Version data entries
3 entries across 3 versions & 1 rubygems