Sha256: 6f078ace58409b1a7663f35d7558fa92ab7ecea9180e2af8b3bee2b7f93ce0f4
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
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.17.0 | examples/blog/src/models/content.rb |