Sha256: b0d15de8ab1fbac0d02f62fee6815d241b4553e46ef7470d658f52b60de4e354

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

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

  mount_uploader :image, Character::ImageUploader

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
character-1.0.6 app/models/character/image.rb
character-1.0.5 app/models/character/image.rb
character-1.0.4 app/models/character/image.rb
character-1.0.3 app/models/character/image.rb
character-1.0.2 app/models/character/image.rb