rails-gallery 0.3.2 → 0.3.3
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 +4 -4
- data/app/views/gallery/_slideshow.html.haml +1 -1
- data/lib/rails-gallery/version.rb +1 -1
- data/lib/rails-gallery/view_helper.rb +4 -4
- 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: 7a8c638653c9a471ec9c51284711fff6ca0b4965
|
4
|
+
data.tar.gz: 263822b87dce92361985dbe3fc162ecd244931ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0004d41f1ad45b3212e0fb7e7c0a69abb58d83221c1a4925d06a76a21e567b65a7968ea585f509356cf4bb49788b0a212151d2e7088b13473ed33939f7aa5067
|
7
|
+
data.tar.gz: 72d5491763d47fe34cf1e18c9bf2c663285ab1a27c970b283761c33412adbcadefa1f62a0b9b2b1789de557dbc26473a3c20a24131236a54ef6165dd175bc932
|
@@ -13,7 +13,7 @@
|
|
13
13
|
.msg_thumb_wrapper
|
14
14
|
- photos.page(:first).photos.each do |photo|
|
15
15
|
%a{href: "#"}
|
16
|
-
= gallery_image :slideshow photo
|
16
|
+
= gallery_image :slideshow, photo
|
17
17
|
- photos.pages.remainder.each do |page|
|
18
18
|
.msg_thumb_wrapper{style: 'display:none'}
|
19
19
|
- page.photos.each do |photo|
|
@@ -18,22 +18,22 @@ module RailsGallery
|
|
18
18
|
autoload gallery.camelize.to_sym, "rails-gallery/view_helper/#{gallery}"
|
19
19
|
end
|
20
20
|
|
21
|
-
def gallery_image type, photo
|
21
|
+
def gallery_image type, photo, options = {}
|
22
22
|
meth_name = "#{type}_gallery_image"
|
23
23
|
validate_gallery_photo! photo
|
24
24
|
unless respond_to? meth_name
|
25
25
|
raise ArgumentError, "Gallery #{type} is not yet supported. Please add a View helper module for this gallery using the convention followed by the other galleries..."
|
26
26
|
end
|
27
|
-
send(meth_name, photo)
|
27
|
+
send(meth_name, photo, options)
|
28
28
|
end
|
29
29
|
|
30
|
-
def gallery_imageset type, imageset
|
30
|
+
def gallery_imageset type, imageset, options = {}
|
31
31
|
meth_name = "#{type}_gallery_imageset"
|
32
32
|
# validate_gallery_imageset! imageset
|
33
33
|
unless respond_to? meth_name
|
34
34
|
raise ArgumentError, "Gallery #{type} is not yet supported for imageset. Please add a View helper module for this gallery using the convention followed by the other galleries..."
|
35
35
|
end
|
36
|
-
send(meth_name, imageset)
|
36
|
+
send(meth_name, imageset, options)
|
37
37
|
end
|
38
38
|
|
39
39
|
protected
|