module ContentfulModel::Associations::BelongsTo::ClassMethods
Class method
Public Instance Methods
belongs_to(_association_name, _opts = {})
click to toggle source
belongs_to
is called on the child, and creates methods for mapping to the parent @param _association_name [Symbol] the singular name of the parent
# File lib/contentful_model/associations/belongs_to.rb, line 13 def belongs_to(_association_name, _opts = {}) fail( NotImplementedError, "Contentful doesn't have a singular belongs_to relationship. Use belongs_to_many instead." ) end