This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/lib/tasks/desktop_update.rake

12 lines
274 B
Ruby

namespace :desktop_update do
task :update_users => :environment do
@desktop_user = User.all
@desktop_user.each do |u|
desk = u.desktop
desk.theme = DesktopTheme.first.id.to_s
desk.wallpaper = nil
desk.save!
end
end
end