Skip to content
Create fake attributes which are stored in serialized hash column
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README
Rakefile
init.rb

README

Attribute Fakers
===============

The easiest way to store random data in serialized attributes.

Usage
=====

Use the "faker_attributes" class method to specify attributes to be stored in a 
serialized hash column, which is named "metadata" by default. Doing so will create
reader/writer methods for each attribute. These methods retrieve/store data in the 
serialized column.

The serialized column is named :metadata by default, but you can change it using the
serialized_column option.

Example
=======

class User < ActiveRecord::Base
  faked_attributes :color, :language, :something, :serialized_column => :tidbits
end


Copyright (c) 2008 Pat Nakajima, released under the MIT license
Something went wrong with that request. Please try again.