Sha256: 9086bd6dea94852e89add1b96f058566caedd2333123057fd5cab206aa8ce594
Contents?: true
Size: 810 Bytes
Versions: 4
Compression:
Stored size: 810 Bytes
Contents
require_relative "base" module Bulldozer class ViewsGenerator < Generators::Base def create_partials_directory empty_directory "app/views/application" end def create_shared_flashes copy_file "_flashes.html.erb", "app/views/application/_flashes.html.erb" copy_file "flashes_helper.rb", "app/helpers/flashes_helper.rb" end def create_shared_javascripts copy_file "_javascript.html.erb", "app/views/application/_javascript.html.erb" end def create_shared_css_overrides copy_file "_css_overrides.html.erb", "app/views/application/_css_overrides.html.erb" end def create_application_layout template "bulldozer_layout.html.erb.erb", "app/views/layouts/application.html.erb", force: true end end end
Version data entries
4 entries across 4 versions & 1 rubygems