Storing strings outside the ruby code.

Hello

I wanted a simular thing. Property files in JAVA were great, but they
don't seem to match Rails Testing Framework. Therefor I made a model
called ActiveProperty. This will store values as a key / value pair by
using an ActiveRecord.
Once stored, the property is available as simple method.

ApplicationProperty.test
-> "no key/value pair"
ApplicationProperty.test = "This is a test"
-> "This is a test"
ApplicationProperty.test
-> "This is a test"

See http://johnnybusca.blogspot.com/ for the source code with tests
how to use.

By storing these properties as activerecords, you can use the
active_property.yml fixture to override the values for test purposes.
This is very handy for testing file manupulations.

Best regards,
Jeroen