I have the following model in rails. what will be it's equivalent in Ember?
User.rb
has_many :posted_posts, class_name: 'Post', as: :posted
has_many :received_posts, class_name: 'Post', as: :received
Group.rb
has_many :posted_posts, class_name: 'Post', as: :posted
has_many :received_posts, class_name: 'Post', as: :received
Post.rb
belongs_to :posted, polymorphic: true
belongs_to :received, polymorphic: true
Aucun commentaire:
Enregistrer un commentaire