Class: KnowledgeFigureBackup

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/knowledge_figure_backup.rb

Instance Method Summary collapse

Instance Method Details

#__image__Object



7
# File 'app/models/knowledge_figure_backup.rb', line 7

alias :__image__ :image

#imageObject



8
9
10
11
12
# File 'app/models/knowledge_figure_backup.rb', line 8

def image
  image = __image__
  raise("#{path} is a GPhys, not a figure.") if image.gphysizable?
  image
end