Method: PUNK::Model.sample_dataset
- Defined in:
- lib/punk/framework/model.rb
.sample_dataset(count = 1) ⇒ Object
32 33 34 |
# File 'lib/punk/framework/model.rb', line 32 def self.sample_dataset(count = 1) order(Sequel.lit("random()")).limit(count) end |