Skip to content
Browse files

Flushed content of input, file_path fields upon completion of name-fi…

…nding
  • Loading branch information...
1 parent c6c25ba commit 4806c3441d70298d648f20e55572be42ff3d8f3f @dshorthouse dshorthouse committed May 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 models/name_finder.rb
View
5 models/name_finder.rb
@@ -90,8 +90,6 @@ def read_file
end
end
FileUtils.remove_entry_secure dir
- self.file_path = nil
- save!
content
end
@@ -126,6 +124,9 @@ def get_content
content = read_file
end
end
+ self.file_path = nil
+ self.input = nil
+ save!
content
end

0 comments on commit 4806c34

Please sign in to comment.
Something went wrong with that request. Please try again.