Ruby on Rails
Wednesday, June 24, 2015
Okay.... this is interesting. I am not familiar with
-- as: :object_with_email_template
I think that for testing purposes, I would just be more explicit and stick with polymorphic suffix -able, see http://www.xyzpub.com/en/ruby-on-rails/3.2/activerecord_polymorphic.html
Now the matter of differing id types.... call me crazy, but I would introduce a new model to manage the differences in id types... It would serve as an intersection table -- storing ids -- between all tables that access email_template.
Liz
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c22b0c75-6024-44a2-b8c5-16fc1cb4bfcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment