Skip to content

Instantly share code, notes, and snippets.

@Najaf
Created February 10, 2014 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Najaf/8912868 to your computer and use it in GitHub Desktop.
Save Najaf/8912868 to your computer and use it in GitHub Desktop.
namespace :admin do
task :list_users do
User.all.each { |u| puts [u.name, u.email, u.created_at].join(' | ') }
end
task :show_stats do
puts Stats.todays_traffic
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment