Class: BudgetDivision

Inherits:
ApplicationRecord show all
Extended by:
Attributable::Association::Target
Defined in:
app/models/budget_division.rb

Overview

Property of Project set on Project::Metadata High level organisational area for funding

Defined Under Namespace

Modules: Associations

Class Method Summary collapse

Methods included from Attributable::Association::Target

default, extended, for_select_association

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Class Method Details

.unallocatedObject



7
8
9
# File 'app/models/budget_division.rb', line 7

def self.unallocated
  find_or_create_by!(name: 'Unallocated')
end