class MathCaptchaGenerator
Public Class Methods
source_root()
click to toggle source
# File lib/generators/math_captcha_generator.rb, line 6 def self.source_root @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates/')) end
Public Instance Methods
create_partial()
click to toggle source
# File lib/generators/math_captcha_generator.rb, line 10 def create_partial template "partial.erb", File.join('app/views', 'math_captcha', "_math_captcha.erb") end