Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 607 Bytes

README.rdoc

File metadata and controls

32 lines (17 loc) · 607 Bytes

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 © 2011 Milan Dobrota. See LICENSE.txt for further details.