Permalink
Browse files

silence warning in rake 0.9

  • Loading branch information...
1 parent 04f02d5 commit 0cb3fd8b3b7d377e2c8c27270d80685ba69076cb @anoopr anoopr committed Jun 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/tasks/has_permalink.rake
@@ -1,6 +1,6 @@
namespace :has_permalink do
desc 'Generate permalinks for [MODEL]'
- task :generate_permalinks, :model_name, :needs => :environment do |t, args|
+ task :generate_permalinks, [:model_name] => [:environment] do |t, args|
begin
model_name = args.first[1]
rescue
@@ -22,4 +22,4 @@ def generate_permalinks(model_name)
rescue
puts "Can't find model '#{model_name}'. Does it exist?"
end
-end
+end

0 comments on commit 0cb3fd8

Please sign in to comment.