loomio/loomio

View on GitHub
app/controllers/api/v1/translations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class API::V1::TranslationsController < API::V1::RestfulController
  def inline
    self.resource = service.create(model: load_and_authorize(params[:model]), to: params[:to])
    respond_with_resource
  end
end