Permalink
Browse files

Stringify captcha paths to match previous behaviour.

  • Loading branch information...
1 parent 2029ec6 commit e43de91b548481350f097facb46b8a1220f767c6 @mipearson mipearson committed Feb 24, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/simple_captcha_config.rb
  2. +1 −1 lib/tasks/simple_captcha_tasks.rake
@@ -15,10 +15,10 @@ module SimpleCaptcha #:nodoc
# The same modification is also required in the rake file.
module Config #:nodoc
def captcha_data_path
- Rails.root.join(*%w{tmp simple_captcha data})
+ Rails.root.join(*%w{tmp simple_captcha data}).to_s
end
def captcha_image_path
- Rails.root.join(*%w{public images simple_captcha})
+ Rails.root.join(*%w{public images simple_captcha}).to_s
end
end
@@ -10,7 +10,7 @@ task :remove_simple_captcha_files do
file_data = file_name.split(".").first
File.delete(file)
begin
- data = PStore.new(data_path + "data")
+ data = PStore.new(data_path)
data.transaction{data.delete(file_data)}
rescue
puts "error while running rake task"

0 comments on commit e43de91

Please sign in to comment.