seeds.rb 211 Bytes Edit Raw Blame History 1 2 3 4 5 unless GamificationPlugin::PointsType.count Merit::PointRules::AVAILABLE_RULES.each do |name , setting| GamificationPlugin::PointsType.create! name: name.to_s, description: setting[:description] end end