Sha256: f78b9afeb5dd6d0ca6af8d1bb5211b2dbf3763abb8906e9e670a56df5e20de40
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
module Sunrise module CarrierWave def self.obtain_class class_name = ENV['CLASS'] || ENV['class'] raise "Must specify CLASS" unless class_name "#{class_name}".constantize end end end namespace :assets do desc "Refresh carrierwave assets by model" task :refresh => :environment do klass = Sunrise::CarrierWave.obtain_class klass.all.each do |item| item.data.recreate_versions! end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sunrise-core-0.2.2 | lib/tasks/assets.rake |
sunrise-core-0.2.1 | lib/tasks/assets.rake |
sunrise-core-0.2.0 | lib/tasks/assets.rake |