Sha256: e923e93230d3ecd3f348fd5bd9700eee35d8de091fdc49f43696fe5db3286c7c

Contents?: true

Size: 645 Bytes

Versions: 9

Compression:

Stored size: 645 Bytes

Contents

RailsKindeditor.setup do |config|

  # Specify the subfolders in public directory.
  # You can customize it , eg: config.upload_dir = 'this/is/my/folder'
  config.upload_dir = 'uploads'

  # Allowed file types for upload.
  config.upload_image_ext = %w[gif jpg jpeg png bmp]
  config.upload_flash_ext = %w[swf flv]
  config.upload_media_ext = %w[swf flv mp3 wav wma wmv mid avi mpg asf rm rmvb]
  config.upload_file_ext = %w[doc docx xls xlsx ppt htm html txt zip rar gz bz2]
  
  # Porcess upload image size
  # eg: 1600x1600 => 800x800
  #     1600x800  => 800x400
  #     400x400   => 800x800
  # config.image_resize_to_fit = [800, 800]

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_kindeditor-0.3.8 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb
rails_kindeditor-0.3.7 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb
rails_kindeditor-0.3.6 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb
rails_kindeditor-0.3.5 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb
rails_kindeditor-0.3.4 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb
rails_kindeditor-0.3.3 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb
rails_kindeditor-0.3.2 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb
rails_kindeditor-0.3.1 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb
rails_kindeditor-0.3.0 lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb