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.
Files changed (2) hide show
  1. data/lib/permalink_fu.rb +1 -0
  2. 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djanowski-permalink_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Janowski