Sha256: bd92fff52106eadf26eab827ea84f338b06b3a8b9dfaf9a8252a0b4c2e828a78

Contents?: true

Size: 248 Bytes

Versions: 2

Compression:

Stored size: 248 Bytes

Contents

class Character::Image
  include Mongoid::Document
  include Mongoid::Timestamps

  mount_uploader :image, Character::ImageUploader

  # scopes
  default_scope -> { order_by(created_at: :desc) }

  # indexes
  index({ created_at: 1, date: -1 })
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
character-1.0.1 app/models/character/image.rb
character-1.0.0 app/models/character/image.rb