Class: Mg::GoalMetaType

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/mountain-goat/models/mg/goal_meta_type.rb

Instance Method Summary collapse

Instance Method Details

#metaObject



12
13
14
15
16
17
18
19
# File 'lib/mountain-goat/models/mg/goal_meta_type.rb', line 12

def meta
  case self.meta_type
  when 'gi_meta', 'ci_meta'
    return self.gi_metas
  when 'gs_meta', 'cs_meta'
    return self.gs_metas
  end
end