Skip to content

Commit

Permalink
Merge branch 'kopylovvlad-pr-33' into develop
Browse files Browse the repository at this point in the history
Ref: phatworx#33

By Kopylov Vladislav (kopylovvlad)
  via Karl Wilbur (karlwilbur)

* kopylovvlad-pr-33:
  Update README.rdoc
  Update README.rdoc
  update to rails 5
  • Loading branch information
karlwilbur committed Nov 11, 2020
2 parents 5fe6b87 + 05cf8d9 commit 664bac2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
= EasyCaptcha
A simple captcha implementation for rails 3 based on rmagick
A simple captcha implementation for rails based on rmagick.

Tested with Rails 3.2.8
It is a fork with rails 5 support.

https://travis-ci.org/phatworx/easy_captcha.png

== Installation
add to Gemfile
gem 'easy_captcha'
gem 'easy_captcha', github: 'kopylovvlad/easy_captcha'
gem 'rmagick'

for java you can use
Expand Down
2 changes: 1 addition & 1 deletion lib/easy_captcha/captcha_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module EasyCaptcha
# captcha controller
class CaptchaController < ActionController::Base
before_filter :overwrite_cache_control
before_action :overwrite_cache_control
# captcha action send the generated image to browser
def captcha
if params[:format] == "wav" and EasyCaptcha.espeak?
Expand Down
4 changes: 2 additions & 2 deletions lib/easy_captcha/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module Routing #:nodoc:
class Mapper #:nodoc:
# call to add default captcha root
def captcha_route
match 'captcha' => 'easy_captcha/captcha#captcha', :via => :get
get '/captcha' => 'easy_captcha/captcha#captcha'
end
end
end
end
end

0 comments on commit 664bac2

Please sign in to comment.