Dump your model object to fixtures
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.markdown
Rakefile
fixtures.gemspec

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