Class: Import
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Import
- Defined in:
- app/models/import.rb
Constant Summary collapse
- THUMB =
1- VIEW =
2
Instance Method Summary collapse
Instance Method Details
#update_size ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'app/models/import.rb', line 14 def update_size if type_pic == THUMB Picture.find(picture_id).update_thumb destroy end if type_pic == VIEW Picture.find(picture_id).update_view destroy end end |