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: e64bfa1fc809037c53a6c2de5dcb587843a0daf8
4
- data.tar.gz: cd4ab8ecb80de3b7b033c5727d7e669040533c92
3
+ metadata.gz: 5d18be527cad3a5d846facf2697be4976d0e211c
4
+ data.tar.gz: 9d1650ea2f5063b05fc618b39a00b71dc4b6c4fa
5
5
  SHA512:
6
- metadata.gz: c12be073dd628bb507784e607dae7d5005964cb855312f8807f24fb758e083ce13bb9cf3ee30ece3b4f9a93fde53da5889ba6c689923a60d3a4eb8af7cbb1f12
7
- data.tar.gz: 42135519886822c7f8fb2657c0aef7b2f2a2d7dbefe59f8f0e3f0286d61585cc9f328dfb28376c44ce88366f0d88c54fc65d8d7bbfb81408557f18cc146afc61
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 = SevenGallery::Photo.find_by(gallery_id: params[:gallery_id], id: params[:id])
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
@@ -1,3 +1,3 @@
1
1
  module SevenGallery
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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
+ SevenGallery::Gallery Load (65.3ms) SELECT `seven_gallery_galleries`.* FROM `seven_gallery_galleries` ORDER BY created_at desc
78801
+ SevenGallery::Photo Load (13.0ms) SELECT `seven_gallery_photos`.* FROM `seven_gallery_photos` ORDER BY position asc, created_at desc
78802
+ SevenGallery::Gallery Load (0.6ms) SELECT `seven_gallery_galleries`.* FROM `seven_gallery_galleries` ORDER BY created_at desc LIMIT 1
78803
+ SevenGallery::Photo Load (1.0ms) 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
+ SevenGallery::Photo Load (1.3ms) SELECT `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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seven_gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - rafael