ActsAsDescribable ================= ActsAsDescribable creates a PolymorphicDescription model which can point to any other model, hence the 'Polymorphic' prefix, and the virtual attribute 'description' to access it and its 'body'. Using this, you can keep a large body of text separate from other data and tables possibly speeding up your queries. No installation script yet so will need to run ... > rake acts_as_describable:import:migrations > rake db:migrate ... to add the descriptions table to your database. Yeah, I know. Big whoop. A new table with 1 field. Oooooh. This was really just an exercise in plugin creation, testing and github posting. Options ====== required (default: false) - When set to true, description cannot be blank. Example ======= class Listing < ActiveRecord::Base acts_as_describable :required => true end Listing.new.description class Store < ActiveRecord::Base acts_as_describable end Copyright (c) 2008 [George 'Jake' Wendt III (upillar.com)], released under the MIT license
jakewendt/acts_as_describable
Creates a polymorphic description table easily attachable to any other model.
RubyMIT