Module: BudgetDivision::Associations

Defined in:
app/models/budget_division.rb

Overview

rubocop:todo Style/Documentation

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


17
18
19
# File 'app/models/budget_division.rb', line 17

def self.included(base)
  base.belongs_to :budget_division, optional: false
end

Instance Method Details

#budget_divisionObject


21
22
23
# File 'app/models/budget_division.rb', line 21

def budget_division
  super || BudgetDivision.unallocated
end