Sha256: 60e9cf054f8ad9a9142407d0cc216804fee46298df375b2b6d9ba0a8db851a42

Contents?: true

Size: 774 Bytes

Versions: 2

Compression:

Stored size: 774 Bytes

Contents

# Use this hook to configure ckeditor
if Object.const_defined?("RedactorRails")
  RedactorRails.setup do |config|
    # ==> ORM configuration
    # Load and configure the ORM. Supports :active_record (default), :mongo_mapper and
    # :mongoid (bson_ext recommended) by default. Other ORMs may be
    # available as additional gems.
    require "redactor-rails/orm/active_record"

    # Allowed image file types for upload.
    # Set to nil or [] (empty array) for all file types
    # config.image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"]

    # Allowed attachment file types for upload.
    # Set to nil or [] (empty array) for all file types
    # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redactor-rails-paperclip-0.4.3 lib/generators/redactor/templates/active_record/redactor_rails_paperclip.rb
redactor-rails-paperclip-0.4.2.1 lib/generators/redactor/templates/active_record/redactor_rails_paperclip.rb