Admin interface #6

Merged
ignisf merged 23 commits from admin-interface into master 2014-10-06 12:33:26 +03:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 24ddcaba3a - Show all commits

View File

@ -10,6 +10,8 @@ class User < ActiveRecord::Base
accepts_nested_attributes_for :speaker_profile, update_only: true
default_scope { order id: :desc }
def toggle_admin!
update admin: !admin
end