splendeo-lightbox2_helpers 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,13 +37,17 @@ module Lightbox2Helpers::FormHelpers
37
37
  html_options = args.third || {}
38
38
  end
39
39
 
40
- if options.include? :group
40
+ if options.is_a? Hash and options.include? :group
41
41
  html_options[:rel] = "lightbox[#{options[:group]}]"
42
42
  options.delete :group
43
+ elsif html_options.is_a? Hash and html_options.include? :group
44
+ html_options[:rel] = "lightbox[#{html_options[:group]}]"
45
+ html_options.delete :group
43
46
  else
44
47
  html_options[:rel] = "lightbox"
45
48
  end
46
- if options.include? :title
49
+
50
+ if options.is_a? Hash and options.include? :title
47
51
  html_options[:title] = options[:title]
48
52
  options.delete :title
49
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splendeo-lightbox2_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Garcia Cota (egarcia)