Sha256: 1f7ef9108236fa4a950ac731f2508c9f68a002a762590c6aceee16ec980a057c
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
# * George Moschovitis <gm@navel.gr> # (c) 2004-2005 Navel, all rights reserved. # $Id: content.rb 23 2005-04-16 18:20:00Z gmosx $ require 'nitro/markup' # The foundamental Content Unit. module BaseContent include Nitro::Markup prop_accessor :title, String prop_accessor :body, String, :markup => true, :ui => :textarea end # CreateTime mixin. module CreateTime prop_accessor :create_time, Time prop_accessor :update_time, Time pre "@create_time = @update_time = Time.now", :on => :og_insert pre "@update_time = Time.now", :on => :og_update end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.16.0 | examples/blog/src/models/content.rb |