Sha256: defe0aa06ea07bb5b338356ed1e98816f4e29f1c8adf181f729400a8eca66f60

Contents?: true

Size: 222 Bytes

Versions: 11

Compression:

Stored size: 222 Bytes

Contents

User.find(:all).each do |user|
  if user.plugins.find_by_name('vimeo_videos').nil?
    user.plugins.create(:name => 'vimeo_videos',
                        :position => (user.plugins.maximum(:position) || -1) +1)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-vimeo-videos-0.1.9.rc3 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.9.rc2 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.9.rc1 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.8.1 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.8 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.7 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.6 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.5 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.4 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.3 db/seeds/vimeo_videos.rb
refinerycms-vimeo-videos-0.1.2 db/seeds/vimeo_videos.rb