module Regressor::Model::Relation::BelongTo
Public Instance Methods
belong_to_relations()
click to toggle source
# File lib/model/active_record/relation/belong_to.rb, line 5 def belong_to_relations @model.constantize.reflect_on_all_associations(:belongs_to).map(&:name).map do |relation| "it { is_expected.to belong_to :#{relation} }" end.join("\n ") end