Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stringify captcha paths to match previous behaviour.

  • Loading branch information...
commit e43de91b548481350f097facb46b8a1220f767c6 1 parent 2029ec6
@mipearson mipearson authored
View
4 lib/simple_captcha_config.rb
@@ -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
View
2  lib/tasks/simple_captcha_tasks.rake
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.