Hi there,
does anyone kow of an existing "ActsAsConfigurable" type plugin?
This is what I came up with;
class Organisation < ActiveRecord::Base
acts_as_configurable :some_property => {
:default => "left",
:options => ["left", "middle", "right"],
:description => "Where should we put something?"}
end
then just;
organisation.some_property # uses the default if it has not been set
organisation.some_property = "middle"
Will add support for Boolean attributes some time soon.