reevoo/sapience-rb

View on GitHub
test_apps/rails_5_0/app/models/post.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
class Post < ApplicationRecord
  include Sapience::Extensions::ActiveRecord::ModelMetrics
  belongs_to :author, class_name: User, inverse_of: :posts
end