File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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
66https://travis-ci.org/phatworx/easy_captcha.png
77
88== Installation
99add to Gemfile
10-   gem 'easy_captcha'
10+   gem 'easy_captcha', github: 'kopylovvlad/easy_captcha' 
1111  gem 'rmagick'
1212
1313for java you can use
Original file line number Diff line number Diff line change 11module  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? 
Original file line number Diff line number Diff 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 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments