Remove unused generator options. This was added for the removed rails new --http
This commit is contained in:
parent
17b8fd5540
commit
66ea296bfd
|
@ -14,9 +14,6 @@ module Rails
|
|||
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
|
||||
|
|
|
@ -10,9 +10,6 @@ module Rails
|
|||
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
|
||||
|
|
|
@ -10,9 +10,6 @@ module TestUnit
|
|||
|
||||
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")
|
||||
|
|
Loading…
Reference in New Issue