Class: ViewCreditApplication

Inherits:
ApplicationViewRecord show all
Includes:
Models::SearchableView
Defined in:
app/models/view_credit_application.rb

Overview

== Schema Information

Table name: view_credit_applications
Database name: primary

id :integer primary key
reference_number :string(255)
state :string(255)
created_at :datetime
customer_id :integer

Belongs to collapse

Methods included from Models::SearchableView

#crm_link, #crm_link_subtitle, #has_columns?, #main_resource, #readonly?

Methods inherited from ApplicationViewRecord

create, create!, #readonly?

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event

Instance Method Details

#customerCustomer

Returns:

See Also:



16
# File 'app/models/view_credit_application.rb', line 16

belongs_to :customer, foreign_key: :customer_id, optional: true