Sha256: 298ea6b54399955e4d80fec4371cf72036a1f08029474cbb339dc48b1854b5c6
Contents?: true
Size: 383 Bytes
Versions: 1
Compression:
Stored size: 383 Bytes
Contents
(Refinery::I18n.frontend_locales ).each do |lang| I18n.locale = lang if defined?(Refinery::User) Refinery::User.all.each do |user| if user.plugins.where(:name => 'refinerycms-contacts').blank? user.plugins.create(:name => 'refinerycms-contacts', :position => (user.plugins.maximum(:position) || -1) +1) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-contacts-0.2.0 | db/seeds.rb |