Sha256: a1a00dec6f1f4976b93c96cba14a3cc98719e86106df5359eae394e5d06a86b6
Contents?: true
Size: 778 Bytes
Versions: 6
Compression:
Stored size: 778 Bytes
Contents
module Html5 module Generators module GeneratorHelpers def application_name if defined?(::Rails) && ::Rails.application ::Rails.application.class.name.split('::').first else "application" end end def application_title if defined?(::Rails) && ::Rails.application ::Rails.application.class.name.split('::').first.titleize else "My App" end end protected def format :html end def handler # Rails.configuration.generators.rails[:template_engine] || options[:template_engine] || :erb end def filename_with_extensions(name) [name, format, handler].compact.join(".") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems