Method: ConfigScripts::Seeds::SeedType#all
- Defined in:
- lib/config_scripts/seeds/seed_type.rb
#all ⇒ Relation
This method gets a relation encompassing all the records in the class.
We encapsulate this here so that we can use different calls in Rails 3 and Rails 4.
320 321 322 323 |
# File 'lib/config_scripts/seeds/seed_type.rb', line 320 def all version = Rails.version[0] records = version == '3' ? self.klass.scoped : self.klass.all end |