Sha256: fa31b177d887191105d2ac29f658f58b2e80ec705105a64319f9366fc47e3975
Contents?: true
Size: 439 Bytes
Versions: 7
Compression:
Stored size: 439 Bytes
Contents
# encoding: UTF-8 class Character::Settings::Variable include Mongoid::Document include Mongoid::Timestamps # attributes field :group field :name field :value # uploaders mount_uploader :file, Character::Settings::FileUploader # indexes index({ group: 1, name: 1 }) # helpers def has_file_uploaded? return false if file.to_s.empty? return false if file.to_s.end_with?('_old_') return true end end
Version data entries
7 entries across 7 versions & 1 rubygems