Method: LesliSecurity::DescriptorsController#create
- Defined in:
- app/controllers/lesli_security/descriptors_controller.rb
#create ⇒ Object
POST /descriptors
77 78 79 80 81 82 83 84 85 86 |
# File 'app/controllers/lesli_security/descriptors_controller.rb', line 77 def create descriptor = DescriptorService.new(current_user, query).create(descriptor_params) # Check if the creation went ok if descriptor.successful? respond_with_successful(descriptor) else respond_with_error(descriptor.errors) end end |