Sweet! I never knew of #naked. Yeah, I don't think I'll ever use anything
else in the JsonSerializer plugin.
Thanks!
On Sunday, July 12, 2015 at 9:26:41 AM UTC-4, Wesley Key wrote:
>
> When using the JsonSerializer plugin in junction with Sequel.as(), you
> receive a undefined method error for *column_alias*.
>
> An example
>
> Country.select(:id, Sequel.as(:country_name,
> :name)).where(Sequel.ilike(:country_name, "b%")).all.to_json
>
> NoMethodError: undefined method `name' for #<Country @values={:id=>17,
> :name=>"Bahamas"}>
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.