Finish sorting for announcements

This commit is contained in:
Christophe Vilayphiou committed 2012-02-24 15:30:49 +08:00
1 parent 8f531a6fe5
commit dcc64a20d2
6 files changed
+51 -23

No files matched your search

+4
View File
@@ -48,5 +48,9 @@ class User
value = values.detect {|value| value.attribute_field_id == field_id} rescue nil
value ? value : self.attribute_values.build
end
def self.from_id(id)
User.find(id) rescue nil
end
end