Update rake for resetting position

Fix codemirror css
This commit is contained in:
chris 2013-10-07 16:23:07 +08:00
parent 21db2a2cba
commit 48aa7ed638
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/*<!--match-->*/ /*<!--match-->*/
span.CodeMirror-matchhighlight { background: #494949 } span.CodeMirror-matchhighlight { background: #494949 }
.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67; !important } .CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; }
/*<!--activeline-->*/ /*<!--activeline-->*/
.activeline {background: #253540 !important;} .activeline {background: #253540 !important;}

View File

@ -91,8 +91,10 @@ namespace :new_ui do
end end
end end
task :save_users => :environment do task :reset_user_position => :environment do
User.not_guest_user.where(position: nil).each(&:save) User.not_guest_user.each_with_index do |user, i|
user.update_attribute(:position, i)
end
end end
end end