Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ari/jobsworth
Browse files Browse the repository at this point in the history
  • Loading branch information
ari committed Jun 2, 2016
2 parents f9cb624 + 0c2c5dc commit f82229d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/resources_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class ResourcesController < ApplicationController
before_filter :check_permission

def new

@resource = Resource.new
@resource.customer_id = params[:customer_id]

Expand Down Expand Up @@ -138,6 +139,6 @@ def log_resource_changes(resource)

def resource_attributes
params.require(:resource).permit :name, :customer_id, :parent_id, :resource_type_id, :notes, :active,
:attribute_values => [:id, :resource_type_attribute_id, :value]
:attribute_values => [:id, :resource_type_attribute_id, :value, :password]
end
end

0 comments on commit f82229d

Please sign in to comment.