splendeo-lightbox2_helpers 0.5.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lightbox2_helpers/form_helpers.rb +5 -5
- metadata +1 -1
@@ -38,17 +38,17 @@ module Lightbox2Helpers::FormHelpers
|
|
38
38
|
end
|
39
39
|
|
40
40
|
if options[:group]
|
41
|
-
html_options
|
41
|
+
html_options[:rel] = "lightbox[#{options[:group]}]"
|
42
42
|
else
|
43
|
-
html_options
|
43
|
+
html_options[:rel] = "lightbox"
|
44
44
|
end
|
45
45
|
|
46
|
-
html_options
|
46
|
+
html_options[:title] = options[:title] if options[:title]
|
47
47
|
|
48
48
|
if block_given?
|
49
|
-
|
49
|
+
concat(link_to(capture(&block), options, html_options))
|
50
50
|
else
|
51
|
-
|
51
|
+
link_to(name, options, html_options)
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|