Sha256: 997a1a4ee2f52806fed232c2e2f5399ed43f9f35091a040b33e9dc23d84204e4
Contents?: true
Size: 627 Bytes
Versions: 8
Compression:
Stored size: 627 Bytes
Contents
require 'generators/formtastic_haml' require 'generators/erb/scaffold/scaffold_generator' module FormtasticHaml module Generators class ScaffoldGenerator < Erb::Generators::ScaffoldGenerator extend TemplatePath def copy_layout_file return unless options[:layout] template "layout.haml.erb", File.join("app/views/layouts", controller_class_path, "#{controller_file_name}.html.haml") end protected def copy_view(view) template "#{view}.haml.erb", File.join("app/views", controller_file_path, "#{view}.html.haml") end end end end
Version data entries
8 entries across 8 versions & 2 rubygems