Sha256: e39fcd7fdf1a6e8bfee53634ebb42aacfd27eb53066c8df7bf771c396a0feaab
Contents?: true
Size: 706 Bytes
Versions: 6
Compression:
Stored size: 706 Bytes
Contents
# Put, inside the load method, the necessary code to generate data with DEVELOPMENT PURPOSES. # Whenever you can, use FactoryGirl's methods to keep this code "self updated". # # For Example: # # Having a country factory in /spec/factories/countries.rb # # FactoryGirl.define do # factory :country do # name "Chile" # locale "es-CL" # currency "$CLP" # end # end # # Choose to do this: # # create(:country) # # Instead of this: # # Country.create(name: "Chile", locale: "es-CL", currency: "$CLP") # Faker::Config.locale = I18n.locale module FakeDataLoader extend FactoryGirl::Syntax::Methods def self.load # Put here the code to generate data with DEVELOPMENT PURPOSES. end end
Version data entries
6 entries across 6 versions & 1 rubygems