ish_manager 0.1.8.5 → 0.1.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ish_manager/photos_controller.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c1dbbdc72abebe1801a1ed0f0ad4c1cd0d012a8
|
4
|
+
data.tar.gz: 4d215e4523c6094525cae0d567861827fac06d67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63a67f156ff7747665b7eef38775bd69e8b2f12c91fd2f7f201d9a195b62af8a70e3c89d79082e376376e7f428abecabbb73569d39ee6de4795b3fad86cf4283
|
7
|
+
data.tar.gz: cd606600e44bd05dff0d6c3d206a2234ce7b532f7c1ad86812a9ee4a85ca6808f25a366e3ec213a247ebc26974e6ea6f052d967e3f0c93bd2c009029bb484b17
|
@@ -31,13 +31,14 @@ class IshManager::PhotosController < IshManager::ApplicationController
|
|
31
31
|
@photo.gallery_id = gallery.id
|
32
32
|
elsif params[:gallery_id]
|
33
33
|
gallery = Gallery.unscoped.where( :galleryname => params[:gallery_id] ).first
|
34
|
-
gallery ||= Gallery.find( params[:gallery_id] )
|
34
|
+
gallery ||= Gallery.unscoped.find( params[:gallery_id] )
|
35
35
|
@photo.gallery_id = gallery.id
|
36
36
|
end
|
37
37
|
|
38
38
|
# cache
|
39
39
|
@photo.gallery.site.touch if @photo.gallery.site
|
40
40
|
@photo.gallery.city.touch if @photo.gallery.city
|
41
|
+
@photo.gallery.touch
|
41
42
|
|
42
43
|
if @photo.save
|
43
44
|
j = { :name => @photo.photo.original_filename,
|