Sha256: 5f30a5f759df21be8c70bae584b62d2f11e29c73f6a4e8b7b093f120c04d0ce4
Contents?: true
Size: 810 Bytes
Versions: 4
Compression:
Stored size: 810 Bytes
Contents
require 'question' require 'person' class Course < CouchRest::Model::Base use_database TEST_SERVER.default_database property :title, String property :questions, [Question] property :professor, Person property :participants, [Object] property :ends_at, Time property :estimate, Float property :hours, Integer property :profit, BigDecimal property :started_on, :type => Date property :updated_at, DateTime property :active, :type => TrueClass property :very_active, :type => TrueClass property :klass, :type => Class view_by :title view_by :title, :active view_by :dept, :ducktype => true view_by :active, :map => "function(d) { if (d['#{model_type_key}'] == 'Course' && d['active']) { emit(d['updated_at'], 1); }}", :reduce => "function(k,v,r) { return sum(v); }" end
Version data entries
4 entries across 4 versions & 2 rubygems