Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9919bda742
Fetching contributors…

Cannot retrieve contributors at this time

file 10 lines (10 sloc) 0.287 kb
1 2 3 4 5 6 7 8 9 10
if defined?(User)
  User.all.each do |user|
    if !user.progressbar_uid.nil?
      if user.plugins.where(:name => 'fees').blank?
        user.plugins.create(:name => 'fees',
                            :position => (user.plugins.maximum(:position) || -1) +1)
      end
    end
  end
end
Something went wrong with that request. Please try again.