Sha256: 45b296ff2cfb5a143a11c93dd70bf55b86f68e52f3e56605487eb5ff732d362e
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
require 'rails/generators/rails/resource/resource_generator' module Rails module Generators class ScaffoldGenerator < ResourceGenerator #metagenerator remove_hook_for :resource_controller remove_class_option :actions <<<<<<< HEAD class_option :stylesheets, :type => :boolean, :desc => "Generate Stylesheets" class_option :stylesheet_engine, :desc => "Engine for Stylesheets" ======= class_option :stylesheets, type: :boolean, desc: "Generate Stylesheets" class_option :stylesheet_engine, desc: "Engine for Stylesheets" class_option :assets, :type => :boolean class_option :resource_route, :type => :boolean >>>>>>> d664409... Merge pull request #10448 from arunagw/bug-fix-scaffold-generator-master hook_for :scaffold_controller, :required => true hook_for :assets do |assets| invoke assets, [controller_name] end hook_for :stylesheet_engine do |stylesheet_engine| invoke stylesheet_engine, [controller_name] if options[:stylesheets] && behavior == :invoke end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
railties-3.2.14.rc2 | lib/rails/generators/rails/scaffold/scaffold_generator.rb.orig |
railties-3.2.14.rc1 | lib/rails/generators/rails/scaffold/scaffold_generator.rb.orig |