Sha256: 09496ba14ad46f6a01c386058b852dc6605dbe7329f97118766b65b18e67e094
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'redactor3_rails/version' require 'orm_adapter' module Redactor3Rails 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'] autoload :Http, 'redactor3_rails/http' autoload :Devise, 'redactor3_rails/devise' module Backend autoload :CarrierWave, 'redactor3_rails/backend/carrierwave' end require 'redactor3_rails/orm/base' require 'redactor3_rails/orm/active_record' require 'redactor3_rails/orm/mongoid' require 'redactor3_rails/engine' mattr_accessor :images_file_types, :files_file_types @@images_file_types = ['jpg', 'jpeg', 'png', 'gif', 'tiff'] @@files_file_types = ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'rtf', 'txt'] def self.image_model Redactor3Rails::Image end def self.file_model Redactor3Rails::File end def self.devise_user :user end def self.devise_user_key "#{self.devise_user.to_s}_id".to_sym end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redactor3_rails-0.1.0 | lib/redactor3_rails.rb |