Sha256: 2c8324cd18ca2f4a0f7cdd7588fc1b9019eba77310ef333b14a7861f16264b79
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
= Metabolical Metabolical is an ActiveRecord Model & mixin that adds metadata to your AR classes. Whenever you feel like adding a column to a table ask yourself if what you really want is just some metadata. == Install gem install metabolical == Usage class User < ActiveRecord::Base metabolize! end user = User.new user.metas['active'] = true user.metas['active'].data #=> true == Notes Metabolical will need you to run the following migration create_table :meta_data, :force => true do |t| t.integer :metabolized_id t.string :metabolized_type t.string :key t.text :data t.timestamps end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metabolical-0.0.1 | README.rdoc |