lib/tasks/assets.rake in ab_admin-0.3.6 vs lib/tasks/assets.rake in ab_admin-0.4.0
- old
+ new
@@ -1,7 +1,8 @@
require 'ruby-progressbar'
namespace :assets do
+ # rake assets:reprocess CLASS=PostImage
desc 'Refresh carrierwave assets versions by model (CLASS=)'
task reprocess: :environment do
name = (ENV['CLASS'] || ENV['class'] || 'Asset').to_s
klass = name.safe_constantize