Sha256: ffcd279ca7be2673918edf25a1569c5eb5e9d020567b1851c8e7ac6682f30ce3

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

class InvestmentType < ActiveRecord::Base

  self.table_name = "investment_types"
  self.primary_key = 'id'

  has_many :investing_wishlist_types, :inverse_of => :investment_type

  # Get All Investment Type
  def self.get_all_investment_types
    Hash[*InvestmentType.order(:name).pluck(:id, :name).flatten]
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
civic311_test3-0.0.2 app/models/investment_type.rb