Skip to content

Commit 05cf8d9

Browse files
committed
Merge remote-tracking branch 'kopylovvlad/master' into kopylovvlad-pr-33
* kopylovvlad/master: Update README.rdoc Update README.rdoc update to rails 5 Ref: phatworx#33
2 parents d3a0281 + da01572 commit 05cf8d9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.rdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
= EasyCaptcha
2-
A simple captcha implementation for rails 3 based on rmagick
2+
A simple captcha implementation for rails based on rmagick.
33

4-
Tested with Rails 3.2.8
4+
It is a fork with rails 5 support.
55

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

88
== Installation
99
add to Gemfile
10-
gem 'easy_captcha'
10+
gem 'easy_captcha', github: 'kopylovvlad/easy_captcha'
1111
gem 'rmagick'
1212

1313
for java you can use

lib/easy_captcha/captcha_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module EasyCaptcha
22
# captcha controller
33
class CaptchaController < ActionController::Base
4-
before_filter :overwrite_cache_control
4+
before_action :overwrite_cache_control
55
# captcha action send the generated image to browser
66
def captcha
77
if params[:format] == "wav" and EasyCaptcha.espeak?

lib/easy_captcha/routes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module Routing #:nodoc:
33
class Mapper #:nodoc:
44
# call to add default captcha root
55
def captcha_route
6-
match 'captcha' => 'easy_captcha/captcha#captcha', :via => :get
6+
get '/captcha' => 'easy_captcha/captcha#captcha'
77
end
88
end
99
end
10-
end
10+
end

0 commit comments

Comments
 (0)