Skip to content

Commit

Permalink
fixing usage of tap introduced by last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt committed Nov 28, 2010
1 parent 40adabb commit 130b73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/find_by_param.rb
Expand Up @@ -123,7 +123,7 @@ def find_by_param!(value, args={})
module InstanceMethods
def to_param
value = self.send(permalink_options[:param]).dup.to_s.downcase rescue ""
tap "" do |param|
''.tap do |param|
if value.blank?
param << id.to_s
else
Expand Down

0 comments on commit 130b73f

Please sign in to comment.