Sha256: 1bae7b7a6062f1a7bd55bbc15fbd65cb3b0c9bea711c9405bd4e46aa7116f04e

Contents?: true

Size: 179 Bytes

Versions: 46

Compression:

Stored size: 179 Bytes

Contents

# frozen_string_literal: true

require 'yaml'

class ModelFactory
  def self.for(model)
    path = File.expand_path("models/data/#{model}.yml")
    YAML.load_file(path)
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
ruby_raider-1.0.8 lib/generators/rspec/templates/factory.tt
ruby_raider-1.0.7 lib/generators/rspec/templates/factory.tt
ruby_raider-1.0.6 lib/generators/rspec/templates/factory.tt
ruby_raider-1.0.5 lib/generators/rspec/templates/factory.tt
ruby_raider-1.0.4 lib/generators/rspec/templates/factory.tt
ruby_raider-1.0.3 lib/generators/rspec/templates/factory.tt
ruby_raider-1.0.2 lib/generators/rspec/templates/factory.tt
ruby_raider-1.0.1 lib/generators/rspec/templates/factory.tt
ruby_raider-1.0.0 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.9 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.8 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.7 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.6 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.5 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.4 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.3 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.2 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.1 lib/generators/rspec/templates/factory.tt
ruby_raider-0.9.0 lib/generators/rspec/templates/factory.tt
ruby_raider-0.8.9 lib/generators/rspec/templates/factory.tt