Sha256: a143365939c8e7a0d6d31b93e0f007e2cab28eb2b0b54a812fcfb93e684e0f08
Contents?: true
Size: 664 Bytes
Versions: 4
Compression:
Stored size: 664 Bytes
Contents
module LashaApplicationHelper def index_actions_link_helper(action, item, data) case action when :show link_to action, url_for([data[:namespace], item]), class: "btn btn-info btn-xs btn-block" when :edit link_to action, url_for([data[:namespace], :edit, item]), class: "btn btn-warning btn-xs btn-block" when :destroy link_to action, url_for([data[:namespace], item]), method: :delete, data: { confirm: "Are you sure you want to delete #{data[:model]}?" }, class: "btn btn-danger btn-xs btn-block" end end end
Version data entries
4 entries across 4 versions & 1 rubygems