Merge branch 'design_team' into ldap

This commit is contained in:
Christophe Vilayphiou committed 2012-05-14 12:42:06 +08:00
commit 59b55d1574
15 files changed
+95 -11

No files matched your search

+8
View File
@@ -21,6 +21,14 @@ class User
belongs_to :role
has_and_belongs_to_many :sub_roles
accepts_nested_attributes_for :attribute_values, :allow_destroy => true
def self.current
Thread.current[:user]
end
def self.current=(user)
Thread.current[:user] = user
end
scope :remote_account, where(:nccu_id.ne => nil)