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

Jeremy

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