lib/tasks/friendly_id.rake in friendly_id-2.2.6 vs lib/tasks/friendly_id.rake in friendly_id-2.2.7

- old
+ new

@@ -14,10 +14,10 @@ Rake::Task["friendly_id:make_slugs"].invoke end desc "Kill obsolete slugs older than DAYS=45 days." task :remove_old_slugs => :environment do - FriendlyId::Task.delete_old_slugs(ENV["DAYS"], ENV["MODEL"]) + FriendlyId::Tasks.delete_old_slugs(ENV["DAYS"], ENV["MODEL"]) end end def validate_model_given raise 'USAGE: rake friendly_id:make_slugs MODEL=MyModelName' if ENV["MODEL"].nil?