Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Create fake attributes which are stored in serialized hash column

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.