Sha256: dd3fedf65cfb5b90196e6f940b17cf3b8831c137d4699be9b050151f0c0019c6

Contents?: true

Size: 357 Bytes

Versions: 7

Compression:

Stored size: 357 Bytes

Contents

class Character::Redirect
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Attributes::Dynamic # required to remove users using _delete field

  # attributes
  field :path
  field :destination
  field :type, type: Integer, default: 301

  TYPE_CHOICES = [ ["301", 301], ["302", 302] ].freeze

  # indexes
  index({ path: 1 })
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
character-1.0.6 app/models/character/redirect.rb
character-1.0.5 app/models/character/redirect.rb
character-1.0.4 app/models/character/redirect.rb
character-1.0.3 app/models/character/redirect.rb
character-1.0.2 app/models/character/redirect.rb
character-1.0.1 app/models/character/redirect.rb
character-1.0.0 app/models/character/redirect.rb