Sha256: 68a3525525d10277009bd12899496e5dc5ec2672698049659007a725b2c743f3
Contents?: true
Size: 1.75 KB
Versions: 6
Compression:
Stored size: 1.75 KB
Contents
Radiant.config do |config| config.namespace 'paperclip' do |pc| pc.define 'url', :default => '/:class/:id/:basename:no_original_style.:extension' pc.define 'path', :default => ':rails_root/public/:class/:id/:basename:no_original_style.:extension', :allow_change => true pc.define 'skip_filetype_validation', :default => true, :type => :boolean pc.define 'storage', :default => 'filesystem', :select_from => {'File System' => 'filesystem', 'Amazon S3' => 's3'}, :allow_blank => false, :allow_display => false pc.namespace 's3' do |s3| s3.define 'bucket' s3.define 'key' s3.define 'secret' s3.define 'host_alias' end end config.namespace 'assets', :allow_display => false do |assets| assets.define 'create_image_thumbnails?', :default => 'true' assets.define 'create_video_thumbnails?', :default => 'true' assets.define 'create_pdf_thumbnails?', :default => 'true' assets.namespace 'thumbnails' do |thumbs| # NB :icon and :thumbnail are already defined as fixed formats for use in the admin interface and can't be changed thumbs.define 'image', :default => 'normal:size=640x640>|small:size=320x320>' thumbs.define 'video', :default => 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg' thumbs.define 'pdf', :default => 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg' end assets.define 'max_asset_size', :default => 5, :type => :integer, :units => 'MB' assets.define 'display_size', :default => 'normal', :allow_blank => true assets.define 'insertion_size', :default => 'normal', :allow_blank => true end end
Version data entries
6 entries across 6 versions & 1 rubygems