Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed some old code that had been commented out.

  • Loading branch information...
commit f68f7c92f4b3416a96cdee5f69308b0b7fc70079 1 parent 5a40e9e
Norman Clarke norman authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  lib/friendly_id/sluggable_class_methods.rb
3  lib/friendly_id/sluggable_class_methods.rb
@@ -32,15 +32,14 @@ def find_one(id_or_name, options) #:nodoc:#
32 32 end
33 33
34 34 result
  35 +
35 36 rescue ActiveRecord::RecordNotFound => e
36 37
37 38 if friendly_id_options[:scope]
38 39 if !scope
39 40 raise ActiveRecord::RecordNotFound.new("%s; expected scope but got none" % e.message)
40   - # e.message << "; expected scope but got none"
41 41 else
42 42 raise ActiveRecord::RecordNotFound.new("%s and scope=#{scope}" % e.message)
43   - # e.message << " and scope=#{scope}"
44 43 end
45 44 end
46 45

0 comments on commit f68f7c9

Please sign in to comment.
Something went wrong with that request. Please try again.