Class: Avatar

Inherits:
ApplicationRecord show all
Defined in:
app/models/avatar.rb

Class Method Summary collapse

Methods inherited from ApplicationRecord

aggregate_of, all_except, defaults, #delete, #destroy!, numbered, organic_on, resource_fields, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, #update_and_notify!, update_or_create!, whitelist_attributes

Class Method Details

.sampleObject



2
3
4
# File 'app/models/avatar.rb', line 2

def self.sample
  Avatar.order('RANDOM()').first
end