Sha256: 9f01474489b5b4fad72d5668d6d0b05f906f9e66c6db05c90176e0fe37e93e1d
Contents?: true
Size: 633 Bytes
Versions: 5
Compression:
Stored size: 633 Bytes
Contents
class DietClass < ActiveRecord::Base self.primary_key = "name" class << self def fallback find_by_name 'standard' end end col :name col :intensity, :type => :float col :intensity_units col :red_meat_share, :type => :float col :poultry_share, :type => :float col :fish_share, :type => :float col :eggs_share, :type => :float col :nuts_share, :type => :float col :dairy_share, :type => :float col :cereals_and_grains_share, :type => :float col :fruit_share, :type => :float col :vegetables_share, :type => :float col :oils_and_sugars_share, :type => :float warn_unless_size 3 end
Version data entries
5 entries across 5 versions & 1 rubygems