Changes on nccu

This commit is contained in:
Matt committed 2012-05-18 15:20:45 +08:00
1 parent 2c16284f73
commit 6a022c90da
15 files changed
+89 -22

No files matched your search

+8 -1
View File
@@ -31,7 +31,14 @@ class User
end
scope :remote_account, where(:nccu_id.ne => nil)
def self.current
Thread.current[:user]
end
def self.current=(user)
Thread.current[:user] = user
end
def avb_apps
sub_role_ids_ary=self.sub_roles.collect{|t| t.id}