class Ariadne::Forms::Base
def inherited(base)
def inherited(base) form_path = Ariadne::Forms::Utils.const_source_location(base.name) return unless form_path base.template_root_path = File.join(File.dirname(form_path), base.name.demodulize.underscore) base.renders_template("after_content.html.erb") do base.instance_variable_set(:@has_after_content, true) end base.renders_templates("*_caption.html.erb") do |path| base.fields_with_caption_templates << File.basename(path).chomp("_caption.html.erb").to_sym end end