module EacRailsBase0::Patches::EacRailsUtilsLinksHelper::InstanceMethods
Public Instance Methods
object_path_by_class(*args)
click to toggle source
Calls superclass method
# File lib/eac_rails_base0/patches/eac_rails_utils_links_helper_patch.rb, line 21 def object_path_by_class(*args) super(*args).gsub(/_url\z/, '_path') end
short_object_link(object, action = nil, options = {})
click to toggle source
# File lib/eac_rails_base0/patches/eac_rails_utils_links_helper_patch.rb, line 14 def short_object_link(object, action = nil, options = {}) value_or_sign(object, '') do |value| path = object_path(value, action) link_to '', url_for(path), options if can_by_path?(path, options[:method]) end end