Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
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