Skip to content

milandobrota/copyrb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ruby objects to go: Copy and paste freely across consoles

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages