Module: CaptainOveur::User::InstanceMethods

Defined in:
lib/captain_oveur/user.rb

Instance Method Summary collapse

Instance Method Details

#activate_admin!Object



11
12
13
# File 'lib/captain_oveur/user.rb', line 11

def activate_admin!
  return self.update_attribute("admin", true)
end

#deactivate_admin!Object



15
16
17
# File 'lib/captain_oveur/user.rb', line 15

def deactivate_admin!
  return self.update_attribute("admin", false)
end