Module: BudgetDivision::Associations

Defined in:
app/models/budget_division.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


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

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

Instance Method Details

#budget_divisionObject


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

def budget_division
  super || BudgetDivision.unallocated
end