Class: SoftValidationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/soft_validations_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#is_data_controller, #is_task_controller, #meta_data, #meta_description, #meta_keywords, #meta_title, #page_title, #site_name

Instance Method Summary (collapse)

Methods inherited from ApplicationController

#clear_project_and_user_variables, #digest_cookie, #digested_cookie_exists?, #disable_turbolinks, #intercept_api, #invalid_object, #is_data_controller?, #is_task_controller?, #log_user_recent_route, #notice_user, #project_matches, #record_not_found, #set_project_and_user_variables, #set_project_from_params, #token_authenticate

Methods included from ProjectsHelper

#project_link, #project_tag, #projects_list, #projects_search_form

Instance Method Details

- (Object) validate



3
4
5
6
7
8
9
10
11
# File 'app/controllers/soft_validations_controller.rb', line 3

def validate
  object = GlobalID::Locator.locate(URI.decode(params[:global_id]))
  object.soft_validate 

  render json: {
    validations: object.soft_validations
  }

end