lib/rmagick_captcha.rb in rmagick_captcha-0.6.3 vs lib/rmagick_captcha.rb in rmagick_captcha-0.6.4
- old
+ new
@@ -5,15 +5,11 @@
require 'rmagick_captcha/controller_additions'
require 'rmagick_captcha/view_additions'
# require backends
require 'rmagick_captcha/rmagick_backend'
-# = Rails breadcrumbs
-#
module RmagickCaptcha
- # ::Rails.logger.error("...")
-
# default options that can be overridden on the global level
@@options = {
:controller => "rmagick_captcha", #
:action => "show", #
:id => "id", #
@@ -36,10 +32,9 @@
def self.enable_actionpack
ActionController::Base.send :include, RmagickCaptcha::ControllerAdditions
ActionController::Base.send :extend, RmagickCaptcha::ControllerAdditions::ClassMethods
ActionView::Base.send :include, RmagickCaptcha::ViewAdditions
end
-
end
if defined? Rails
RmagickCaptcha.enable_activerecord if defined? ActiveRecord
RmagickCaptcha.enable_actionpack if defined? ActionController