Class: Thredded::DatabaseSeeder::CollectionSeedData
- Inherits:
-
BaseSeedData
- Object
- BaseSeedData
- Thredded::DatabaseSeeder::CollectionSeedData
- Defined in:
- lib/thredded/database_seeder.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseSeedData
Instance Method Summary collapse
Methods inherited from BaseSeedData
create, #find_or_create, #initialize
Constructor Details
This class inherits a constructor from Thredded::DatabaseSeeder::BaseSeedData
Instance Method Details
#find ⇒ Object
176 177 178 179 |
# File 'lib/thredded/database_seeder.rb', line 176 def find return nil unless model_class.exists? model_class.all.to_a end |