Sha256: 5a35046e39ea56b3dbaf9bf8b3617d05c8f15c78f04e5c32965f7f11ef860753
Contents?: true
Size: 687 Bytes
Versions: 7
Compression:
Stored size: 687 Bytes
Contents
require 'rails/generators/erb/scaffold/scaffold_generator' module Erb class ScaffoldhubGenerator < Erb::Generators::ScaffoldGenerator include Scaffoldhub::Helper class_option :scaffold, :default => 'default', :banner => "SCAFFOLD_NAME", :type => :string, :desc => "Scaffold to use" class_option :local, :default => false, :banner => "LOCAL SCAFFOLD", :type => :boolean, :desc => "Use a local scaffold, not scaffoldhub.org" def copy_view_files each_template_file(:view) do |erb_template_file| template erb_template_file.src, File.join("app/views", controller_file_path, replace_name_tokens(erb_template_file.dest)) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems