Class: Character::Settings::Variable

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/character/settings/variable.rb

Instance Method Summary collapse

Instance Method Details

#has_file_uploaded?Boolean

helpers

Returns:

  • (Boolean)


18
19
20
21
22
# File 'app/models/character/settings/variable.rb', line 18

def has_file_uploaded?
  return false if file.to_s.empty?
  return false if file.to_s.end_with?('_old_')
  return true
end