Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Action destroy was missing for inherited_resources-controller template.

  • Loading branch information...
commit 5bddcb96bb9c1fcd456277e5109604ef86552249 1 parent 6efba39
Jonas Grimfelt authored
2  generators/dry_scaffold/templates/controller_inherited_resources.rb
View
@@ -1,6 +1,6 @@
class <%= controller_class_name %>Controller < InheritedResources::Base
- actions :index, :show, :new, :create, :edit, :update
+ actions :index, :show, :new, :create, :edit, :update, :destroy
respond_to :html, :xml, :json
protected
2  generators/dry_scaffold/templates/prototypes/controller_inherited_resources.rb
View
@@ -1,6 +1,6 @@
class ResourcesController < InheritedResources::Base
- actions :index, :show, :new, :create, :edit, :update
+ actions :index, :show, :new, :create, :edit, :update, :destroy
respond_to :html, :xml, :json
protected
Please sign in to comment.
Something went wrong with that request. Please try again.