Sha256: e487c4ebf3da3b6499a9cf9b17f1f290155cba2ec5e6da7622d2e20d2e9b7b23
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
class Event # for safe_update, and Timestamp include MongoMapper::Document key :start_date, Timestamp key :end_date, Timestamp key :password, String end class Recipe # for Set include MongoMapper::Document include MongoMapperExt::Filter language Proc.new { |d| d.language } filterable_keys :language key :ingredients, Set key :description, String key :language, String, :default => 'en' end class Avatar # for Storage and File include MongoMapper::Document include MongoMapperExt::Storage file_key :data end class UserConfig #for OpenStruct include MongoMapper::Document key :entries, OpenStruct end class BlogPost # for Slug and Filter include MongoMapper::Document include MongoMapperExt::Filter include MongoMapperExt::Slugizer include MongoMapperExt::Tags filterable_keys :title, :body, :tags, :date slug_key :title, :max_length => 18 language :find_language key :title, String key :body, String key :tags, Array key :date, Time def find_language 'en' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongomapper_ext-0.1.5 | test/models.rb |