Method: ConfigScripts::Seeds::SeedType#has_attributes

Defined in:
lib/config_scripts/seeds/seed_type.rb

#has_attributes(*new_attributes) ⇒ Array<Symbol>

This method adds new attributes to the ones written in this seed type.

Parameters:

  • new_attributes (Array<Symbol>)

    The attributes to add.

Returns:

  • (Array<Symbol>)

    The full list of attributes after the new ones are added.



102
103
104
# File 'lib/config_scripts/seeds/seed_type.rb', line 102

def has_attributes(*new_attributes)
  @attributes += new_attributes
end