Sha256: fa3ac542aa59afa127e4afa3d391347874ca5447042b77f7caf74401523652b7

Contents?: true

Size: 382 Bytes

Versions: 37

Compression:

Stored size: 382 Bytes

Contents

#require 'carrierwave/mongoid'
#
#class Uploader< CarrierWave::Uploader::Base
#  include Mongoid::Document
#  #include CarrierWave::RMagick
#  storage :file
#
#  def filename
#    "#{id}.#{file.extension}" if original_filename.present?
#  end 
#  def extension_white_list
#    %w(jpg jpeg gif png)
#  end
#  def store_dir
#    File.join(Dir.pwd, 'public/assets/images')
#  end
#end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
classiccms-0.6.7 lib/classiccms/models/uploader.rb
classiccms-0.6.6 lib/classiccms/models/uploader.rb
classiccms-0.6.5 lib/classiccms/models/uploader.rb
classiccms-0.6.4 lib/classiccms/models/uploader.rb
classiccms-0.6.3 lib/classiccms/models/uploader.rb
classiccms-0.6.2 lib/classiccms/models/uploader.rb
classiccms-0.6.1 lib/classiccms/models/uploader.rb
classiccms-0.6.0 lib/classiccms/models/uploader.rb
classiccms-0.5.17 lib/classiccms/models/uploader.rb
classiccms-0.5.16 lib/classiccms/models/uploader.rb
classiccms-0.5.15 lib/classiccms/models/uploader.rb
classiccms-0.5.14 lib/classiccms/models/uploader.rb
classiccms-0.5.13 lib/classiccms/models/uploader.rb
classiccms-0.5.12 lib/classiccms/models/uploader.rb
classiccms-0.5.11 lib/classiccms/models/uploader.rb
classiccms-0.5.10 lib/classiccms/models/uploader.rb
classiccms-0.5.9 lib/classiccms/models/uploader.rb
classiccms-0.5.8 lib/classiccms/models/uploader.rb
classiccms-0.5.7 lib/classiccms/models/uploader.rb
classiccms-0.5.6 lib/classiccms/models/uploader.rb