On Feb 10, 8:59 am, Jeremy Evans <[email protected]> wrote:
> On Feb 9, 11:18 pm, "Skye sh...@#$" <[email protected]> wrote:
>
> > Yes, they work fine if ones table conforms to the same convention as
> > the columns:
>
> > "CRAP_BLOG".camelize #"CRAPBLOG"
>
> > When the transformation between table name and column names differ,
> > they can't be used.
>
> You could try a hack like this:
>
>   class String
>     def databaseize
>       self =~ /\A[A-Z_]*\z/ ? self : camelize
>     end
>   end
>   DB.identifier_input_method == :databaseize


This is Rails and all but really the poor String class shouldn't have
to bare the brunt of my table's name.

Better if identifier_input_method  took a Proc, don't you think?

Thanks,
Skye

-- 
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