djanowski-permalink_fu 0.1.0 → 0.1.1
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.
- 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
|