Permalink
Browse files

Removed some old code that had been commented out.

  • Loading branch information...
1 parent 5a40e9e commit f68f7c92f4b3416a96cdee5f69308b0b7fc70079 @norman norman committed Oct 19, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/friendly_id/sluggable_class_methods.rb
@@ -32,15 +32,14 @@ def find_one(id_or_name, options) #:nodoc:#
end
result
+
rescue ActiveRecord::RecordNotFound => e
if friendly_id_options[:scope]
if !scope
raise ActiveRecord::RecordNotFound.new("%s; expected scope but got none" % e.message)
- # e.message << "; expected scope but got none"
else
raise ActiveRecord::RecordNotFound.new("%s and scope=#{scope}" % e.message)
- # e.message << " and scope=#{scope}"
end
end

0 comments on commit f68f7c9

Please sign in to comment.