Module: RedactorRails
- Defined in:
- lib/redactor-rails.rb,
lib/redactor-rails/http.rb,
lib/redactor-rails/engine.rb,
lib/redactor-rails/helper.rb,
lib/redactor-rails/version.rb,
lib/redactor-rails/orm/base.rb,
lib/redactor-rails/orm/mongoid.rb,
lib/redactor-rails/backend/paperclip.rb,
lib/redactor-rails/orm/active_record.rb,
lib/redactor-rails/backend/carrierwave.rb
Defined Under Namespace
Modules: Backend, Helpers, Http, Orm Classes: Asset, BaseController, Document, DocumentsController, Engine, Picture, PicturesController
Constant Summary collapse
- IMAGE_TYPES =
['image/jpeg', 'image/png', 'image/gif', 'image/jpg', 'image/pjpeg', 'image/tiff', 'image/x-png']
- FILE_TYPES =
['application/msword', 'application/pdf', 'text/plain', 'text/rtf', 'application/vnd.ms-excel']
- VERSION =
"0.4.1"
- @@image_file_types =
["jpg", "jpeg", "png", "gif", "tiff"]
- @@document_file_types =
["pdf", "doc", "docx", "xls", "xlsx", "rtf", "txt"]
- @@relative_path =
'/assets/redactor_rails'
Class Method Summary collapse
Class Method Details
.root_path ⇒ Object
30 31 32 |
# File 'lib/redactor-rails.rb', line 30 def self.root_path @root_path ||= Pathname.new(File.dirname(File.('../', __FILE__))) end |