# Ruby script inherit model data

**URL:** <https://www.ruby-forum.com/t/ruby-script-inherit-model-data/158127>\
**Category:** Rails\
**Created:** [January 19, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/ruby-script-inherit-model-data/158127 "2009-01-19T16:15:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 19, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/ruby-script-inherit-model-data/158127/1 "2009-01-19T16:15:09Z")

</div>

Is there a way that a regular cli script can inherit all of the rails  
active record methods? I am trying to run a script from the cli so  
work on the associations between models but I am not sure how to get  
the active record methods to use.
