test
Ruby
code posted
created at 07 Nov 16:57
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 |
class AdvisorCompany < Company include AdvisorCompany::AdvisorAffiliations include AdvisorCompany::AdvisorDowngrade include AdvisorCompany::AdvisorBranding include AdvisorCompany::AdvisorBilling def as_json(options = {}) super(options).tap do |json| json[:advised_companies] = advised_company_affiliations.as_json if not options[:exclude_advised_companies] end end end |
408 Bytes in 2 ms with coderay