To add image field in shop

This commit is contained in:
San Wai Lwin
2018-03-07 12:41:49 +06:30
parent 5cc369114b
commit 9f29bbef5a
6 changed files with 149 additions and 67 deletions

View File

@@ -1,3 +1,6 @@
class Shop < ApplicationRecord
ShopDetail = Shop.find_by_id(1)
# Shop Image Uploader
mount_uploader :logo, ShopImageUploader
end