Sha256: 50d0816578bfeed28b2175dcb11c7d76b3de2d47dcfaac083369199183aa1382

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

class Image
  include Mongoid::Document
  include Mongoid::Timestamps

  field :file_uid
  field :file_name

  file_accessor :file
  validates_property :format, :of => :file, :in => [:jpg, :jpeg, :png, :gif]
end

class Document
  include Mongoid::Document
  include Mongoid::Timestamps

  field :file_uid
  field :file_name

  file_accessor :file
  #validates_property :format, :of => :file
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
classiccms-0.6.5 lib/classiccms/models/image.rb
classiccms-0.6.4 lib/classiccms/models/image.rb
classiccms-0.6.3 lib/classiccms/models/image.rb
classiccms-0.6.2 lib/classiccms/models/image.rb