Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #407 from big32mike/fix_node_classes
Browse files Browse the repository at this point in the history
Fix NodeClassesController#create
  • Loading branch information
ZeroPointEnergy committed Jun 9, 2020
2 parents 5696e45 + c32fd3b commit 4e22686
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/node_classes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class NodeClassesController < InheritedResources::Base

protected

def node_class_params
params.require(:node_class).permit(:name, :description)
end

def resource
get_resource_ivar || set_resource_ivar(end_of_association_chain.find_by_id_or_name!(params[:id]))
end
Expand Down

0 comments on commit 4e22686

Please sign in to comment.