for user new interface, member role is working.

This commit is contained in:
Matthew K. Fu JuYuan authored and chris committed 2012-10-26 11:27:37 +08:00
1 parent b301f6522a
commit bd0d975014
15 files changed
+312 -90

No files matched your search

+7
View File
@@ -27,4 +27,11 @@ class Role
self.first(:conditions => {:key => key})
end
def statuses_for_select
data = self.statuses.map do |t|
[t.id.to_s,t.title_translations]
end
Hash[data]
end
end