# File lib/pry-rails/model_formatter.rb, line 84 def kind_of_relation(relation) case relation.to_s.sub(/^Mongoid::Relations::/, '') when 'Referenced::Many' then 'has_many' when 'Referenced::One' then 'has_one' when 'Referenced::In' then 'belongs_to' when 'Embedded::Many' then 'embeds_many' when 'Embedded::One' then 'embeds_one' when 'Embedded::In' then 'embedded_in' end end