Sha256: 277849373a9479de59ea72ad0aafa7e551cdef5206bf8de3fda94456c9632887
Contents?: true
Size: 569 Bytes
Versions: 17
Compression:
Stored size: 569 Bytes
Contents
module Errdo module Helpers module ViewsHelper def user_show_string(user) if user.respond_to?(Errdo.user_string_method || "") user.send(Errdo.user_string_method) elsif user user.class.to_s + " #" + user.id.to_s else "" end end def user_show_path(user) if Errdo.user_show_path && user Rails.application.routes.url_helpers.send(Errdo.user_show_path, user) end end def user_show_url(user) user_show_path(user) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems