Sha256: e056bfecabac372c5787860520a6d85050df58bc27feb90a66e39d55e5afa2d3
Contents?: true
Size: 567 Bytes
Versions: 36
Compression:
Stored size: 567 Bytes
Contents
module Dorsale::ContextHelper def actions_for(obj, opts = {}) url = opts[:url] edit_url = opts[:edit_url] delete_url = opts[:delete_url] url = polymorphic_path(obj) if url.nil? edit_url = url + "/edit" if edit_url.nil? delete_url = url if delete_url.nil? render partial: "dorsale/actions", locals: { :obj => obj, :url => url, :edit_url => edit_url, :delete_url => delete_url, } end def render_dorsale_page render "dorsale/page" end end
Version data entries
36 entries across 36 versions & 1 rubygems