Skip to content
Browse files

Remove unused generator options. This was added for the removed rails…

… new --http
  • Loading branch information...
1 parent 17b8fd5 commit 66ea296bfd03412f0e605cada9825e8d80707221 @spastorino spastorino committed
View
3 railties/lib/rails/generators/rails/resource/resource_generator.rb
@@ -14,9 +14,6 @@ class ResourceGenerator < ModelGenerator #metagenerator
class_option :actions, :type => :array, :banner => "ACTION ACTION", :default => [],
:desc => "Actions for the resource controller"
- class_option :http, :type => :boolean, :default => false,
- :desc => "Generate resource with HTTP actions only"
-
hook_for :resource_route, :required => true
end
end
View
3 railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
@@ -10,9 +10,6 @@ class ScaffoldControllerGenerator < NamedBase
class_option :orm, :banner => "NAME", :type => :string, :required => true,
:desc => "ORM to generate the controller for"
- class_option :http, :type => :boolean, :default => false,
- :desc => "Generate controller with HTTP actions only"
-
def create_controller_files
template "controller.rb", File.join('app/controllers', class_path, "#{controller_file_name}_controller.rb")
end
View
3 railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
@@ -10,9 +10,6 @@ class ScaffoldGenerator < Base
argument :attributes, :type => :array, :default => [], :banner => "field:type field:type"
- class_option :http, :type => :boolean, :default => false,
- :desc => "Generate functional test with HTTP actions only"
-
def create_test_files
template "functional_test.rb",
File.join("test/functional", controller_class_path, "#{controller_file_name}_controller_test.rb")

0 comments on commit 66ea296

Please sign in to comment.
Something went wrong with that request. Please try again.