Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
i2bskn committed Jun 25, 2015
1 parent 83f7185 commit d2b130f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/findable/seed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def model
end

def bootstrap!
model.query.transaction do
model.query.lock do
model.delete_all
model.query.import YAML.load_file(@_full_path).values
end
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/findable.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace :findable do
desc "Load seed file of findable."
task :seed => :environment do
task :seeds => :environment do
if Findable.config.seed_file
load Findable.config.seed_file
end
Expand Down

0 comments on commit d2b130f

Please sign in to comment.