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.
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