lib/config_scripts/seeds/seed_set.rb
# This method gets a seed type that we have on file for a class.
#
# @param [Class] klass
#   The class whose seeds we are dealing with.
#
# @return [SeedType]
This method gets a seed type that we have on file for a class.
This method gets a seed type that we have on file for a class .
def seed_type_for_class(klass)
        while klass && klass != ActiveRecord::Base
          seed_type = self.seed_types[klass]
          if seed_type
            return seed_type
          end
          klass = klass.superclass
        end
      end
def seed_type_for_class ( klass ) while klass && klass != ActiveRecord :: Base seed_type = self . seed_types [ klass ] if seed_type return seed_type end klass = klass . superclass end end
This method gets a seed type that we have on file for a class.
This method gets a seed type that we have on file for a class .
None
SeedType
klass
<not_specific>
<not_specific>
klass The class whose seeds we are dealing with.
klass The class whose seeds we are dealing with .