Class: Plotline::Image
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Plotline::Image
- Defined in:
- app/models/plotline/image.rb
Instance Method Summary collapse
Instance Method Details
#filename ⇒ Object
6 7 8 |
# File 'app/models/plotline/image.rb', line 6 def filename remote_file? ? image : File.join('./public', image) end |
#remove_image_file ⇒ Object
10 11 12 |
# File 'app/models/plotline/image.rb', line 10 def remove_image_file File.delete(filename) unless remote_file? end |