Skip to content

Commit

Permalink
Merge pull request #109 from danhawkins/master
Browse files Browse the repository at this point in the history
Rake task fix
  • Loading branch information
norman committed May 31, 2011
2 parents 491398a + c9a18b7 commit 5d9d946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/friendly_id/active_record_adapter/tasks.rb
Expand Up @@ -30,7 +30,7 @@ def make_slugs
:include => :slug,
:limit => (ENV["LIMIT"] || 100).to_i,
:offset => 0,
:order => ENV["ORDER"] || "#{klass.table_name}.id ASC",
:order => ENV["ORDER"] || "#{klass.table_name}.#{klass.primary_key} ASC",
}.merge(task_options || {})

while records = find(:all, options) do
Expand Down

0 comments on commit 5d9d946

Please sign in to comment.