splendeo-lightbox2_helpers 0.5.2 → 0.5.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.
@@ -38,17 +38,17 @@ module Lightbox2Helpers::FormHelpers
38
38
  end
39
39
 
40
40
  if options[:group]
41
- html_options.merge!( {:rel => "lightbox[#{options[:group]}]"} )
41
+ html_options[:rel] = "lightbox[#{options[:group]}]"
42
42
  else
43
- html_options.merge!( {:rel => "lightbox"} )
43
+ html_options[:rel] = "lightbox"
44
44
  end
45
45
 
46
- html_options.merge!( {:title => options[:title]} ) if options[:title]
46
+ html_options[:title] = options[:title] if options[:title]
47
47
 
48
48
  if block_given?
49
- return concat(link_to(capture(&block), options, html_options))
49
+ concat(link_to(capture(&block), options, html_options))
50
50
  else
51
- return link_to (name, options, html_options)
51
+ link_to(name, options, html_options)
52
52
  end
53
53
  end
54
54
 
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.5.2
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Garcia Cota (egarcia)