class Recaptcha::Railtie

Protected Class Methods

add(pattern) click to toggle source
# File lib/recaptcha/railtie.rb, line 24
def add(pattern)
  files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
  I18n.load_path.concat(files)
end
pattern_from(args) click to toggle source
# File lib/recaptcha/railtie.rb, line 29
def pattern_from(args)
  array = Array(args || [])
  array.blank? ? '*' : "{#{array.join ','}}"
end