vendredi 24 juin 2016

Rails Model association with tabless Model

I want to perform has_one, belongs_to association on a tableless model.

class A < ActiveRecord::Base
  has_one: b
end

class B < Tableless
   attr_accessor: b
end

I want to know whether this is possible in Rails

Aucun commentaire:

Enregistrer un commentaire