Skip to content

Commit

Permalink
fix appending
Browse files Browse the repository at this point in the history
  • Loading branch information
rhalff committed May 22, 2011
1 parent dbfe018 commit 3fd164b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/seed_dump/perform.rb
Expand Up @@ -15,7 +15,7 @@ def self.setup(env)
@opts['no-data'] = !env['NO_DATA'].nil?
@opts['models'] = env['MODELS'] || (env['MODEL'] ? env['MODEL'] : "")
@opts['file'] = env['FILE'] || "#{Rails.root}/db/seeds.rb"
@opts['append'] = (!env['APPEND'].nil? && File.exists?(opts['file']) )
@opts['append'] = (!env['APPEND'].nil? && File.exists?(@opts['file']) )
@ar_options = env['LIMIT'].to_i > 0 ? { :limit => env['LIMIT'].to_i } : {}
@indent = " " * (env['INDENT'].nil? ? 2 : env['INDENT'].to_i)
@opts['models'] = @opts['models'].split(',').collect {|x| x.underscore.singularize.camelize.constantize }
Expand Down

0 comments on commit 3fd164b

Please sign in to comment.