Skip to content
Dump your model object to fixtures https://rubygems.org/gems/fixtures
Ruby
Find file
Latest commit d1c67f2 @nyaa again
Failed to load latest commit information.
lib small ref
.gitignore first public beta
Gemfile first public beta
README.markdown again
Rakefile first public beta
fixtures.gemspec first public beta

README.markdown

BETA

How to use

need add line
require 'fixtures/fixtures'
in your environment.rb

gem 'fixtures'
in you Gemfile

active_record_object.to_hash
will convert object to hash

active_record_object.to_fixtures
will add fixtures to test/fixtures/table_name.yml

Something went wrong with that request. Please try again.