# Acts\_as\_versioned rails 2.1 namespacing

**URL:** <https://www.ruby-forum.com/t/acts-as-versioned-rails-2-1-namespacing/146921>\
**Category:** Rails\
**Created:** [August 26, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-rails-2-1-namespacing/146921 "2008-08-26T21:06:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabaum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ed8c4c/32.png) [@fabaum](https://www.ruby-forum.com/u/fabaum)\
**Post date:** [August 26, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-rails-2-1-namespacing/146921/1 "2008-08-26T21:06:56Z")

</div>

Anyone knows how to use namespace with acts\_as\_versioned-0.5.1?  
Model example:

class Namespace::MyModel \< ActiveRecord::Base

require ‘acts\_as\_versioned’

acts\_as\_versioned(:class\_name =\> “Namespace::MyModel”, :table\_name =\>  
my\_model\_versions’)

…

The error looks like:  
NameError in Namespace::MyModel

wrong constant name Namespace::MyModelVersionsAssociationExtension
