Sha256: 632cc8a2090e0f8311164bab7290e7ba4a2ed4bb4600427741ecb4abda74fe49
Contents?: true
Size: 941 Bytes
Versions: 5
Compression:
Stored size: 941 Bytes
Contents
require "rails/generators" module Suspenders class ViewsGenerator < Rails::Generators::Base source_root File.expand_path( File.join("..", "..", "..", "templates"), File.dirname(__FILE__), ) 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 "suspenders_layout.html.erb.erb", "app/views/layouts/application.html.erb", force: true end end end
Version data entries
5 entries across 5 versions & 1 rubygems