Sha256: a52e83e5118fb8275abe56082fadff63162c591922d9ae1645c63c4372d3dd20
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 Bytes
Contents
class Unico::RegistrationCadastralCertificatesController < ::CrudController defaults route_prefix: '', resource_class: ::RegistrationCadastralCertificate def new object = build_resource object.creditor = Creditor.find(params[:creditor_id]) super end def create create! { registration_cadastral_certificates_path(creditor_id: resource.creditor_id) } end def show render layout: 'report' end def update update! { registration_cadastral_certificates_path(creditor_id: resource.creditor_id) } end def destroy destroy! { registration_cadastral_certificates_path(creditor_id: resource.creditor_id) } end def begin_of_association_chain @parent = Creditor.find(params[:creditor_id]) if params[:creditor_id] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unico-training-7.8.0 | app/controllers/unico/registration_cadastral_certificates_controller.rb |