Skip to content

Commit

Permalink
Fix tests for Rails 3.0.4.rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Feb 2, 2011
1 parent 92fa9a8 commit c625728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/friendly_id/active_record_adapter/relation.rb
Expand Up @@ -101,7 +101,7 @@ def sluggable_ids_for(ids)
fragment = "(slugs.sluggable_type = %s AND slugs.name = %s AND slugs.sequence = %d)"
conditions = ids.inject(nil) do |clause, id|
name, seq = id.parse_friendly_id
string = fragment % [connection.quote(klass.base_class), connection.quote(name), seq]
string = fragment % [connection.quote(klass.base_class.name), connection.quote(name), seq]
clause ? clause + " OR #{string}" : string
end
sql = "SELECT sluggable_id FROM slugs WHERE (%s)" % conditions
Expand Down

0 comments on commit c625728

Please sign in to comment.