lib/brightcontent/attachments.rb in brightcontent-attachments-2.0.33 vs lib/brightcontent/attachments.rb in brightcontent-attachments-2.1.0
- old
+ new
@@ -3,11 +3,15 @@
require "jquery-fileupload-rails"
require "brightcontent/attachments/engine"
module Brightcontent
- autoload :Attachable, 'brightcontent/attachable'
- autoload :AttachmentModelExtensions, 'brightcontent/attachment_model_extensions'
+ register_extension 'attachments'
+ mattr_reader :attachment_content_types
+ @@attachment_content_types = [/\Aimage/, "application/pdf"]
+
module Attachments
+ autoload :Attachable, 'brightcontent/attachments/attachable'
+ autoload :ModelExtensions, 'brightcontent/attachments/model_extensions'
end
end