# Misunderstanding init\_engine.rb?

**URL:** <https://www.ruby-forum.com/t/misunderstanding-init-engine-rb/61492>\
**Category:** Engines Development\
**Created:** [May 24, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/misunderstanding-init-engine-rb/61492 "2006-05-24T14:44:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![al-evans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/54ee81/32.png) [@al-evans](https://www.ruby-forum.com/u/al-evans)\
**Post date:** [May 24, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/misunderstanding-init-engine-rb/61492/1 "2006-05-24T14:44:18Z")

</div>

It seems to me that the init\_engine.rb file must not be getting  
processed, or – just as likely – I’m misunderstanding something.

For example, in init\_engine.rb:

module PSitsnotEngine  
module VERSION  
Major = 0 # change implies compatibility breaking with previous  
versions  
Minor = 1 # change implies backwards-compatible change to API  
Release = 0 # incremented with bug-fixes, updates, etc.  
end

# Configuration – can be overridden in environment.rb

config :max\_output\_size, 640  
config :max\_cache\_size, 1024  
config :cache\_file\_type, ‘png’  
end

Then, script/console:

> > PSitsnotEngine.class  
> > =\> Module
> 
> > PSitsnotEngine::VERSION.class  
> > NameError: uninitialized constant VERSION  
> > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/  
> > lib/active\_support/dependencies.rb:123:in `const\_missing’  
> > from (irb):2
> 
> > PSitsnotEngine.config :max\_output\_size  
> > =\> nil
> 
> > PSitsnotEngine::CONFIG  
> > =\> {}

What am I missing here? The “config” statements work find if I put  
them in environment.rb.

```
				--Al Evans--
```
