ajaxful_rating 2.2.1 → 2.2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ajaxful_rating.gemspec +1 -1
- data/lib/axr/model.rb +2 -2
- metadata +2 -1
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('ajaxful_rating', '2.2.1') do |p|
|
5
|
+
Echoe.new('ajaxful_rating', '2.2.1.1') do |p|
|
6
6
|
p.description = "Provides a simple way to add rating functionality to your application."
|
7
7
|
p.url = "http://github.com/edgarjs/ajaxful-rating"
|
8
8
|
p.author = "Edgar J. Suarez"
|
data/ajaxful_rating.gemspec
CHANGED
data/lib/axr/model.rb
CHANGED
@@ -87,7 +87,7 @@ module AjaxfulRating # :nodoc:
|
|
87
87
|
|
88
88
|
# Builds the DOM id attribute for the wrapper in view.
|
89
89
|
def wrapper_dom_id(options = {})
|
90
|
-
options = options.slice(:small, :
|
90
|
+
options = options.symbolize_keys.slice(:small, :dimension)
|
91
91
|
options = options.map do |k, v|
|
92
92
|
if k == :dimension
|
93
93
|
v
|
@@ -96,7 +96,7 @@ module AjaxfulRating # :nodoc:
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
prefix = "ajaxful_rating"
|
99
|
-
prefix << "
|
99
|
+
prefix << "_#{options.join('_')}" unless options.empty?
|
100
100
|
ApplicationController.helpers.dom_id(self, prefix)
|
101
101
|
end
|
102
102
|
|