Hi Ignacio,

got it: In case of a non standard class name like in 

>   belongs_to :customer, class_name: 'User', inverse_of: :conversations


Rails does not get the has many asociation unless the foreign key is 
specified. So the right way to do it is
 

>   has_many :conversations, dependent: :destroy, inverse_of: :customer, 
> foreign_key: :customer_id


Cheers,
Stefan

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to