OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/lib/open_project/costs/patches/permitted_params_patch.rb

20 lines
539 B

require_dependency 'permitted_params'
module OpenProject::Costs::Patches::PermittedParamsPatch
def self.included(base) # :nodoc:
base.send(:include, InstanceMethods)
end
module InstanceMethods
def cost_entry
params.require(:cost_entry).permit(:comments,
:units,
:overridden_costs,
:spent_on)
end
end
end
PermittedParams.send(:include, OpenProject::Costs::Patches::PermittedParamsPatch)