renames user_helper

This commit is contained in:
rgarcia
2015-11-09 13:28:02 +01:00
parent 0614629d35
commit 7259ac06e8
3 changed files with 12 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
module UserHelper
def humanize_document_type(document_type)
case document_type
when "1"
t "verification.residence.new.document_type.spanish_id"
when "2"
t "verification.residence.new.document_type.passport"
when "3"
t "verification.residence.new.document_type.residence_card"
end
end
end

View File

@@ -1,5 +1,16 @@
module UsersHelper
def humanize_document_type(document_type)
case document_type
when "1"
t "verification.residence.new.document_type.spanish_id"
when "2"
t "verification.residence.new.document_type.passport"
when "3"
t "verification.residence.new.document_type.residence_card"
end
end
def comment_commentable_title(comment)
commentable = comment.commentable
if commentable.nil?