Updated

app/models/concerns / applicable.rb

A
15 lines of codes
2 methods
2.0 complexity/method
3 churn
3.9 complexity
0 duplications
module Applicable
  1. Applicable has no descriptive comment
extend ActiveSupport::Concern included do belongs_to :account, optional: true attribute :account_id def account
  1. Applicable#account doesn't depend on instance state (maybe move it to another class?)
Current.account end def account_id
  1. Applicable#account_id doesn't depend on instance state (maybe move it to another class?)
Current.account&.id end end end