Sha256: 8b04975ea5d3deb6bf96fa0ce9d72d0d0d78dd4e503678fff3687f45c3eee4d0

Contents?: true

Size: 343 Bytes

Versions: 15

Compression:

Stored size: 343 Bytes

Contents

module ExpressTranslate
  class Account
    include ExpressTranslate
    def self.seed
      if !(Account.all.present?)
        ExpressTranslate.config["account"].each do |account|
          Account.add({
            username: account["username"],
            password: account["password"]
          })
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
express_translate-1.0.13 lib/seeds/accounts_seed.rb
express_translate-1.0.12 lib/seeds/accounts_seed.rb
express_translate-1.0.11 lib/seeds/accounts_seed.rb
express_translate-1.0.10 lib/seeds/accounts_seed.rb
express_translate-1.0.9 lib/seeds/accounts_seed.rb
express_translate-1.0.8 lib/seeds/accounts_seed.rb
express_translate-1.0.7 lib/seeds/accounts_seed.rb
express_translate-1.0.6 lib/seeds/accounts_seed.rb
express_translate-1.0.5 lib/seeds/accounts_seed.rb
express_translate-1.0.4 lib/seeds/accounts_seed.rb
express_translate-1.0.3 lib/seeds/accounts_seed.rb
express_translate-1.0.2 lib/seeds/accounts_seed.rb
express_translate-1.0.1 lib/seeds/accounts_seed.rb
express_translate-1.0 lib/seeds/accounts_seed.rb
express_translate-1.0.0.0 lib/seeds/accounts_seed.rb