Sha256: cfb3a4009fb80289f1d18459b59ce2d4d5297d662d37d50e2fc04d8b3184b7ff

Contents?: true

Size: 260 Bytes

Versions: 14

Compression:

Stored size: 260 Bytes

Contents

module EasyCaptcha
  # helper class for ActionView
  module ViewHelpers
    # generate an image_tag for captcha image
    def captcha_tag(*args)
      options = args.extract_options!
      image_tag(captcha_path(:i => Time.now.to_i), options)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
easy_captcha-0.2.5 lib/easy_captcha/view_helpers.rb
easy_captcha-0.2.4 lib/easy_captcha/view_helpers.rb
easy_captcha-0.2.3 lib/easy_captcha/view_helpers.rb
easy_captcha-0.2.2 lib/easy_captcha/view_helpers.rb
easy_captcha-0.2.1 lib/easy_captcha/view_helpers.rb
easy_captcha-0.2.0 lib/easy_captcha/view_helpers.rb
easy_captcha-0.1.9 lib/easy_captcha/view_helpers.rb
easy_captcha-0.1.8 lib/easy_captcha/view_helpers.rb
easy_captcha-0.1.7 lib/easy_captcha/view_helpers.rb
easy_captcha-0.1.6 lib/easy_captcha/view_helpers.rb
easy_captcha-0.1.5 lib/easy_captcha/view_helpers.rb
easy_captcha-0.1.4 lib/easy_captcha/view_helpers.rb
easy_captcha-0.1.3 lib/easy_captcha/view_helpers.rb
easy_captcha-0.1.2 lib/easy_captcha/view_helpers.rb