Rubymine code completion of model object

Our rails project involves two databases: Postgres and MS sql server.

In the one database case :

When a variable holds a model object, see this RubyMine suggests suitable code completion with created dynamic queries, e.g. find_by_name, find by phone ....

But in model like :

class Customer < ActiveRecord::Base

establish_connection :sqlacc

self.table_name = 'ACC_CODE'

...

the model object from Customer did not get code completion with created dynamic queries, i.e. find_by_code ...

Would somebody know how to get this work ?

Thanks

1 comment
Comment actions Permalink

Hello Jenifer,

Could you please specify your RubyMine version? In addition, it'd be great if you could provide a minimal project sample for reproduce so that we could understand better the issue. 

0

Please sign in to leave a comment.