Class: InvestmentType

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/investment_type.rb

Class Method Summary collapse

Class Method Details

.get_all_investment_typesObject

Get All Investment Type



9
10
11
# File 'app/models/investment_type.rb', line 9

def self.get_all_investment_types
  Hash[*InvestmentType.order(:name).pluck(:id, :name).flatten]
end