djanowski-permalink_fu 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/permalink_fu.rb +1 -0
- metadata +1 -1
data/lib/permalink_fu.rb
CHANGED
@@ -48,6 +48,7 @@ module PermalinkFu
|
|
48
48
|
# end
|
49
49
|
#
|
50
50
|
def has_permalink(attr_names = [], options = {})
|
51
|
+
attr_names = :to_s if attr_names.blank?
|
51
52
|
self.permalink_attributes = Array(attr_names)
|
52
53
|
self.permalink_field = (options.delete(:as) || 'permalink').to_s
|
53
54
|
self.permalink_options = options
|