Sha256: dc9e18c4c8ae950ed3b53caf0c8a2eb00790d4d8cede3986889acd85a4843dc2
Contents?: true
Size: 543 Bytes
Versions: 11
Compression:
Stored size: 543 Bytes
Contents
module ErpForms::ErpApp::Desktop::DynamicForms class CommentsController < ErpForms::ErpApp::Desktop::DynamicForms::BaseController def add @myDynamicObject = DynamicFormModel.get_constant(params[:model_name]).find(params[:id]) @comment = @myDynamicObject.add_comment({ :commentor_name => current_user.party.description, :email => current_user.email, :comment => params[:comment] }) render :json => (@comment.valid? ? {:success => true} : {:success => false}) end end end
Version data entries
11 entries across 11 versions & 1 rubygems