Sha256: 1c79903e72b21c529074e8187d4f6bb3f4227b28a1746cdbb5178a2398e976cb
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
(Refinery.i18n_enabled? ? Refinery::I18n.frontend_locales : [:en]).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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-contacts-0.1.2 | db/seeds.rb |
refinerycms-contacts-0.1.1 | db/seeds.rb |
refinerycms-contacts-0.1.0 | db/seeds.rb |