Permalink
Browse files

Fixing the number writing + cleaning a bit

  • Loading branch information...
1 parent 42da3e4 commit 54716e3d4d6a256047b15fb30ced47b6069b697e Simon COURTOIS committed Apr 11, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/versioned_seeds.rb
View
@@ -36,8 +36,7 @@ def last_loaded(loaded=already_loaded)
# Loads a list of seeding scripts and updates the .versioned_seeds file
def load(seeds)
- seeds = [*seeds]
- seeds.each do |seed|
+ [*seeds].each do |seed|
puts "Loading: #{File.basename seed.file}"
require seed.file
write_loaded seed
@@ -60,7 +59,7 @@ def seeds
# Writes the versions of the loaded script to the .versionned_seeds file
def write_loaded(loaded)
File.open(root_path + '.versioned_seeds', 'a') do |f|
- loaded.each { |seed| f.puts seed.version }
+ f.puts loaded.version
end
end

0 comments on commit 54716e3

Please sign in to comment.