Class: Unico::RegistrationCadastralCertificatesController
- Inherits:
-
CrudController
- Object
- CrudController
- Unico::RegistrationCadastralCertificatesController
show all
- Defined in:
- app/controllers/unico/registration_cadastral_certificates_controller.rb
Instance Method Summary
collapse
Instance Method Details
#begin_of_association_chain ⇒ Object
27
28
29
|
# File 'app/controllers/unico/registration_cadastral_certificates_controller.rb', line 27
def begin_of_association_chain
@parent = Creditor.find(params[:creditor_id]) if params[:creditor_id]
end
|
#create ⇒ Object
11
12
13
|
# File 'app/controllers/unico/registration_cadastral_certificates_controller.rb', line 11
def create
create! { registration_cadastral_certificates_path(creditor_id: resource.creditor_id) }
end
|
#destroy ⇒ Object
23
24
25
|
# File 'app/controllers/unico/registration_cadastral_certificates_controller.rb', line 23
def destroy
destroy! { registration_cadastral_certificates_path(creditor_id: resource.creditor_id) }
end
|
#new ⇒ Object
4
5
6
7
8
9
|
# File 'app/controllers/unico/registration_cadastral_certificates_controller.rb', line 4
def new
object = build_resource
object.creditor = Creditor.find(params[:creditor_id])
super
end
|
#show ⇒ Object
15
16
17
|
# File 'app/controllers/unico/registration_cadastral_certificates_controller.rb', line 15
def show
render layout: 'report'
end
|
#update ⇒ Object
19
20
21
|
# File 'app/controllers/unico/registration_cadastral_certificates_controller.rb', line 19
def update
update! { registration_cadastral_certificates_path(creditor_id: resource.creditor_id) }
end
|