Sha256: cfc58c292b5e81109313124b120e996920d47ca40ccdbdd8d1c7f87f55d6e78d
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
# # install_generator.rb # # Created by Marko Tunjic on 15/07/16. # Copyright © 2016 Marko Tunjic. All rights reserved. # module ScaffoldView module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) desc "This generator override default scaffold generator for views." argument :ui, :type => :string, :default => "bootstrap", :description => "Include stylesheets" def copy_template_file # copy stylesheets directory "#{ui}/stylesheets", "vendor/assets/stylesheets/#{ui}" # copy templates %w(index show _form new edit).each do |template| copy_file "#{ui}/#{template}.html.erb", "lib/templates/erb/scaffold/#{template}.html.erb" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
actionscaffold-0.3.5 | lib/generators/scaffold_view/install_generator.rb |