Module: FileDelete
- Defined in:
- lib/paperclip_delete_helpers.rb
Defined Under Namespace
Modules: ClassMethods, ViewHelpers Classes: Railtie
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/paperclip_delete_helpers.rb', line 15 def self.included(base) base.extend(ClassMethods) #models = ActiveRecord::Base.send(:subclasses) #puts "#{::Rails.root.to_s}/app/models/" #Dir["#{::Rails.root.to_s}/app/models/*"].each do |file| # puts "trying to init #{file}\n" # model = File.basename(file, ".*").classify.constantize # models << model unless models.include?(model) #end #base.find_deletable_files(models) end |