seven_gallery 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d18be527cad3a5d846facf2697be4976d0e211c
|
|
4
|
+
data.tar.gz: 9d1650ea2f5063b05fc618b39a00b71dc4b6c4fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37ebb9dce72161faa56a0917434a164f5d8d3f7c910f85730ab6cbbc96087b3a088125deee7b15dd933b3e835edffb111d4417d34c0a43afbb57627542eca4f8
|
|
7
|
+
data.tar.gz: 30f80b9c7c5b782283e91de6ccf4a478906f6cb5d2f4f636fbeb6ccf2740dfb5218d72fa048431095a6f2083bf875e6773461919a1f31f8cb4c002223ebc20ac
|
|
@@ -63,7 +63,8 @@ module SevenGallery::Concerns::PhotosController
|
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
def get_photo
|
|
66
|
-
@photo =
|
|
66
|
+
@photo = @gallery.photos.find(params[:id])
|
|
67
|
+
# @photo = SevenGallery::Photo.find_by(gallery_id: params[:gallery_id], id: params[:id])
|
|
67
68
|
end
|
|
68
69
|
|
|
69
70
|
def get_new_photo
|
|
@@ -78797,3 +78797,8 @@ Started GET "/assets/seven_gallery/photos-0408f1209116264880bcd334fd7d08ff.js?bo
|
|
|
78797
78797
|
|
|
78798
78798
|
|
|
78799
78799
|
Started GET "/assets/seven_gallery/application-b6de41e3be2a35547bc87c3a4d548552.js?body=1" for 127.0.0.1 at 2015-04-08 15:42:50 +0200
|
|
78800
|
+
[1m[36mSevenGallery::Gallery Load (65.3ms)[0m [1mSELECT `seven_gallery_galleries`.* FROM `seven_gallery_galleries` ORDER BY created_at desc[0m
|
|
78801
|
+
[1m[35mSevenGallery::Photo Load (13.0ms)[0m SELECT `seven_gallery_photos`.* FROM `seven_gallery_photos` ORDER BY position asc, created_at desc
|
|
78802
|
+
[1m[36mSevenGallery::Gallery Load (0.6ms)[0m [1mSELECT `seven_gallery_galleries`.* FROM `seven_gallery_galleries` ORDER BY created_at desc LIMIT 1[0m
|
|
78803
|
+
[1m[35mSevenGallery::Photo Load (1.0ms)[0m SELECT `seven_gallery_photos`.* FROM `seven_gallery_photos` WHERE `seven_gallery_photos`.`seven_gallery_gallery_id` = 1 ORDER BY position asc, created_at desc
|
|
78804
|
+
[1m[36mSevenGallery::Photo Load (1.3ms)[0m [1mSELECT `seven_gallery_photos`.* FROM `seven_gallery_photos` WHERE `seven_gallery_photos`.`seven_gallery_gallery_id` = 1 AND `seven_gallery_photos`.`id` = 7 ORDER BY position asc, created_at desc LIMIT 1[0m
|