class SmartDump::YamlLoader
Public Class Methods
new(path)
click to toggle source
# File lib/smart_dump/yaml_loader.rb, line 6 def initialize(path) @path = path end
Public Instance Methods
load_fixtures!()
click to toggle source
# File lib/smart_dump/yaml_loader.rb, line 10 def load_fixtures! Dir.glob(File.join(@path,'*.yml')).each do |file| base_name = File.basename(file, '.*') ActiveRecord::FixtureSet.create_fixtures(@path, base_name) end end