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

Version Path
erp_forms-3.1.2 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-3.1.1 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-3.1.0 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-3.0.2 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-3.0.1 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-3.0.0 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-2.1.0 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-2.0.6 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-2.0.5 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-2.0.4 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb
erp_forms-2.0.3 app/controllers/erp_forms/erp_app/desktop/dynamic_forms/comments_controller.rb