lib/config_scripts/seeds/seed_type.rb
# This method gets the items that we should write to our seed file.
#
# It will start with the scoped list for the model class, and then apply
# all the scopes in our {#scopes} list.
#
# @return [Relation]
This method gets the items that we should write to our seed file.
It will start with the scoped list for the model class, and then apply
all the scopes in our {#scopes} list.
This method gets the items that we should write to our seed file . It will start with the scoped list for the model class and then apply all the scopes in our { #scopes } list .
def items
        records = self.all
        self.scopes.each { |method, args| records = records.send(method, *args) }
        records
      end
def items records = self . all self . scopes . each { | method , args | records = records . send ( method , * args ) } records end
This method gets the items that we should write to our seed file.
This method gets the items that we should write to our seed file .
None
Relation