Sha256: 2659828db604132fe88ce781fc291ac2a8a5d8a8665bf8637e6a64393fdf7755
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
Radiant.config do |config| config.namespace 'assets', :allow_display => false, :allow_change => false do |assets| # these are structural and can't be changed through the admin interface assets.define 'additional_thumbnails', :default => 'normal=640x640>' assets.define 'url', :default => '/:class/:id/:basename:no_original_style.:extension' assets.define 'path', :default => ':rails_root/public/:class/:id/:basename:no_original_style.:extension', :allow_change => true assets.define 'skip_filetype_validation', :default => true, :type => :boolean assets.define 'storage', :default => 'filesystem', :select_from => {'File System' => 'filesystem', 'Amazon S3' => 's3'}, :allow_blank => false, :allow_change => true assets.namespace 's3' do |s3| s3.define 'bucket' s3.define 'key' s3.define 'secret' s3.define 'host_alias' end # this is reconfigurable assets.define 'max_asset_size', :default => 5, :type => :integer, :units => 'MB', :allow_change => true # these too. I'd like to add a selection definition but it causes all sorts of load-order trouble with the declaration of asset types assets.define 'display_size', :default => 'normal', :allow_change => true, :allow_blank => true assets.define 'insertion_size', :default => 'normal', :allow_change => true, :allow_blank => true assets.define 'create_image_thumbnails?', :default => 'true', :allow_change => true assets.define 'create_video_thumbnails?', :default => 'true', :allow_change => true assets.define 'create_pdf_thumbnails?', :default => 'true', :allow_change => true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-1.0.0.rc2 | vendor/extensions/clipped/config/initializers/radiant_config.rb |