app/models/organizations/organization.rb
# Returns an array of quarters that the organiation has been activated for
# Passing a unit will find the quarters that the organization was active for that specfic unit
Returns an array of quarters that the organiation has been activated for
Passing a unit will find the quarters that the organization was active for that specfic unit
Returns an array of quarters that the organiation has been activated for Passing a unit will find the quarters that the organization was active for that specfic unit
def active_quarters(unit=nil)
    unless unit.nil?
      organization_quarters.for_unit(unit).collect{|oq| oq.quarter}
    else
      organization_quarters.collect{|oq| oq.quarter}
    end
  end
def active_quarters ( unit = nil ) unless unit . nil? organization_quarters . for_unit ( unit ) . collect { | oq | oq . quarter } else organization_quarters . collect { | oq | oq . quarter } end end
Returns an array of quarters that the organiation has been activated for
Passing a unit will find the quarters that the organization was active for that specfic unit
Returns an array of quarters that the organiation has been activated for Passing a unit will find the quarters that the organization was active for that specfic unit
unit