Open brkane opened 9 years ago
Depending on where t
is visible, we could do something like ...
before
class User
def role_name
role && role.name
end
end
after
class User
def role_name
role && t("role.#{role.name.downcase}")
end
end
Right now pulling model names for activity but they are all in english right now