Is it possible to select a column alias and have it automatically
assigned to the corresponding model object attribute. I'm assuming
this is a form of virtual attributes.

I posted an example snippet of an Erubis view and Sequel model:
https://gist.github.com/852330.

The :body_preview attribute always returns nil.

My select statement does include include a literal, but I even dumbed
it down with no luck. For example:
  1) :body.as(:body_preview)
  2) :body___body_preview

Maybe I'm misunderstand how Sequel works here. Any help will be much
appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to