Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby objects to go: Copy and paste freely across consoles
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
copyrb.gemspec

README.rdoc

copyrb

Ruby objects to go. Copy and paste freely across terminals. This is very useful if you want to transfer ActiveRecord objects from one Rails environment to another (to experiment with production data for example).

usage

  • terminal 1:

require 'copyrb'

a = MyActiveRecord.last

copy a

  • terminal 2:

require 'copyrb'

paste #=> returns a, now you can do a.save or whatever!

  • If you don't want to require the gem every time, you can add the following lines to .irbrc

require 'rubygems'

require 'copyrb'

Copyright

Copyright © 2011 Milan Dobrota. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.