Module: RailsSeeder::Helpers
- Includes:
- RandomText
- Defined in:
- lib/rails_seeder.rb
Instance Method Summary collapse
Instance Method Details
#random_days_ago(max_days) ⇒ Object
48 49 50 |
# File 'lib/rails_seeder.rb', line 48 def random_days_ago(max_days) rand(max_days - 1).days.ago - rand(23).hours - rand(59).minutes - rand(60).seconds end |