I'm not 100% clear as to what you want this acts_as_* to do. Can you
give a more concrete example?

- james

On 9 Jun 2006 20:19:52 -0000, steve ross
<[EMAIL PROTECTED]> wrote:
> I'm using login_engine and would like to create an acts_as_identified
> plugin instead of establishing a has_one/belongs_to relationship (I'm
> using two different databases). Here's how it would work:
>
> class MyModel < ActiveRecord::Base
>   acts_as_identified
> end
>
> By the simple addition of this macro, the following things happen:
>
> MyModel acquire new accessors, based on the login information for a
> given user. These read accessors are:
>
> user_id
> full_name
> email
>
> I have a foggy notion of how to create an acts_as_chunky_bacon or
> acts_as_chicken macro, but what I want is something that triggers
> immediately as the class is being built in much the same way
> acts_as_tree does, to add this magic. Additionally, I need to reach out
> and touch the session store from the model (ackkk!)
>
> Any pointers are immensely appreciated! I promise full code, plus some
> extras if I can get this to work :)
>
> Thanks
> --
> Posted with http://DevLists.com.  Sign up and save your mailbox.
> _______________________________________________
> engine-users mailing list
> engine-users@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
>


-- 
* J *
  ~
_______________________________________________
engine-users mailing list
engine-users@lists.rails-engines.org
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to