wrong constant name using set_table_name with oracle schema

45 views
Skip to first unread message

toddwf

unread,
Jul 24, 2012, 8:41:31 PM7/24/12
to compos...@googlegroups.com

Using Rails 3.1.4 and CPK 4.1.2

Rails model Foo with CPK and a table name in oracle of bar.foo... so e.g.

class Foo < ActiveRecord::Base
   set_table_name "bar.foo"

   set_primary_keys :a, :b

end

When I save a new row table I get a wrong constant error on the table name... which it reports as "Bar.foo".

 baz = Foo.new

baz.a = 1
baz.b = 2

baz.save

explosion

Any ideas?  Something with camelizing the name with the schema?

Thanks

-Todd




Reply all
Reply to author
Forward
0 new messages