Sha256: 816d7d616def506d50027b0cb6054a6d8e55eb16f57a0b174757cf2c30c0a1b8
Contents?: true
Size: 664 Bytes
Versions: 22
Compression:
Stored size: 664 Bytes
Contents
require 'rails/generators/named_base' module Formtastic module Generators class Base < Rails::Generators::NamedBase #:nodoc: def self.source_root @_simple_form_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'formtastic', generator_name, 'templates')) end protected def format :html end def handler :erb end def filename_with_extensions(name) [name, format, handler].compact.join(".") end def template_filename_with_extensions(name) [name, format, handler, :erb].compact.join(".") end end end end
Version data entries
22 entries across 22 versions & 1 rubygems