#if progrium /* Apr 06, 04:04 */ > Well, I'll respond here then. > > http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html#M000527 > > If you look at some of the examples that use the :class_name > parameter, it does want strings, but of the actual *class* name, not > the table name. Luckily Rails rocks and provides a method on string to > convert a table name to a class name: > > :class_name => MacEngine.config(:mac_user_grant_table).classify > > I think that should do it.
Ahha! perfect, appologies for not RTFM'in Just before you responded i tried: "MacEngine::" + MacEngine.config(:mac_user_grant_table).to_s.camelize and that also failed to work, I guess for exactly the same reason. > -jeff > #endif /* [EMAIL PROTECTED] */ -- keys: http://codex.net/gpg.asc When the rich wage war, it's the poor who die. -- Jean-Paul Sartre _______________________________________________ engine-developers mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
