aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2011-04-12 22:35:24 -0500
committerJoshua Peek <josh@joshpeek.com>2011-04-12 22:35:24 -0500
commitf004c8868196f62a6810bc7e693b407fd27a5fa7 (patch)
tree53b05e2adf195880080e4758254dcccf49219611 /railties/lib/rails/tasks
parent1b5b53da5e4beb24dc7d41a1e9e5d72b82586985 (diff)
parenta4518517f77055cea0d9fe552d2df393140679de (diff)
downloadrails-f004c8868196f62a6810bc7e693b407fd27a5fa7.tar.gz
rails-f004c8868196f62a6810bc7e693b407fd27a5fa7.tar.bz2
rails-f004c8868196f62a6810bc7e693b407fd27a5fa7.zip
Merge branch 'sprockets'
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r--railties/lib/rails/tasks/assets.rake6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake
new file mode 100644
index 0000000000..396ce728a1
--- /dev/null
+++ b/railties/lib/rails/tasks/assets.rake
@@ -0,0 +1,6 @@
+namespace :assets do
+ task :compile => :environment do
+ assets = Rails.application.config.assets.precompile
+ Rails.application.assets.precompile(*assets)
+ end
+end