Sha256: 4e3b637ce18e5443854b76d79fb09747d4bf8353dfe2acb78bd43d9a1c6d1618
Contents?: true
Size: 1.61 KB
Versions: 13
Compression:
Stored size: 1.61 KB
Contents
:ruby if show_action == :authorize_each show_action = (EffectiveDatatables.authorized?(controller, :show, resource) rescue false) elsif show_action.respond_to?(:call) show_action = instance_exec(resource, &show_action) end if edit_action == :authorize_each edit_action = (EffectiveDatatables.authorized?(controller, :edit, resource) rescue false) elsif edit_action.respond_to?(:call) edit_action = instance_exec(resource, &edit_action) end if destroy_action == :authorize_each destroy_action = (EffectiveDatatables.authorized?(controller, :destroy, resource) rescue false) elsif destroy_action.respond_to?(:call) destroy_action = instance_exec(resource, &destroy_action) end if unarchive_action == :authorize_each unarchive_action = (EffectiveDatatables.authorized?(controller, :unarchive, resource) rescue false) elsif unarchive_action.respond_to?(:call) unarchive_action = instance_exec(resource, &unarchive_action) end - if show_action && show_path = show_icon_to show_path.gsub(':to_param', resource.to_param) - if edit_action && edit_path = edit_icon_to edit_path.gsub(':to_param', resource.to_param) - if destroy_action && destroy_path - if resource.respond_to?(:archived?) && !resource.archived? = archive_icon_to destroy_path.gsub(':to_param', resource.to_param) - elsif resource.respond_to?(:archived?) == false = destroy_icon_to destroy_path.gsub(':to_param', resource.to_param) - if unarchive_action && unarchive_path - if resource.respond_to?(:archived?) && resource.archived? = unarchive_icon_to unarchive_path.gsub(':to_param', resource.to_param)
Version data entries
13 entries across 13 versions & 1 rubygems